/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NuevaIntervencion.java
 *
 * Created on 22-ene-2013, 11:16:57
 */
package gui;

import com.sun.awt.AWTUtilities;
import controladores.ControladorPrincipal;
import io.Adulto;
import io.Asesoria;
import io.Calle;
import io.Comisaria;
import io.Copnaf;
import io.Direccion;
import io.Hijo;
import io.InformacionAsesoria;
import io.InformacionCopnaf;
import io.InformacionJuzgado;
import io.InformacionServicioProteccionDerecho;
import io.Intervencion;
import io.IntervencionAdiccion;
import io.IntervencionComun;
import io.JuzgadoDeFamilia;
import io.Nino_Adolescente;
import io.Persona;
import io.ServicioProteccionDerecho;
import io.TipoAsesoria;
import io.TipoCompleto;
import io.TipoComposicionFamiliar;
import io.TipoEscolaridad;
import io.TipoEstadoCivil;
import io.TipoSituacionLaboral;
import io.TipoSustancia;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Shape;
import java.awt.geom.RoundRectangle2D;
import java.awt.print.PageFormat;
import java.awt.print.Paper;
import java.awt.print.Printable;
import java.awt.print.PrinterJob;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Iterator;
import javax.imageio.ImageIO;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.table.DefaultTableModel;
import utilidades.JFrameConFondo;

/**
 *
 * @author NiCo
 */
public class ModificarIntervencion extends JFrameConFondo implements Printable{

    private Image icono = new ImageIcon(getClass().getResource("/imagenes/logo.png")).getImage();
    private int contador = 0;
    private IntervencionAdiccion adiccion = null;
    private IntervencionComun violencia = null;
    private ArrayList<Hijo> listaHijos = null;

    /** Creates new form NuevaIntervencion */
    public ModificarIntervencion(Intervencion intervencion) {
        initComponents();
        btnAnterior.setVisible(false);
        btnImprimir.setVisible(false);
        pnl1V.setVisible(false);
        pnl2V.setVisible(false);
        pnl3V.setVisible(false);
        pnl1A.setVisible(false);
        pnl2A.setVisible(false);

        cboTrabajo.setSelectedIndex(-1);
        cboSustAbuso.setSelectedIndex(-1);
        cboSustInicio.setSelectedIndex(-1);
        cboPrimario.setSelectedIndex(-1);
        cboSecundario.setSelectedIndex(-1);

        cboCalleMadre.setModel(new DefaultComboBoxModel(ControladorPrincipal.getInstance().getControladorCasos().listaCalles().toArray()));
        cboCallePadre.setModel(new DefaultComboBoxModel(ControladorPrincipal.getInstance().getControladorCasos().listaCalles().toArray()));
        cboCalleMadre.setSelectedIndex(-1);
        cboCallePadre.setSelectedIndex(-1);
        try {
            this.adiccion = (IntervencionAdiccion) intervencion;
            rbtnAdicciones.setSelected(true);
            pnl1A.setVisible(true);
        } catch (Exception e) {
        }
        try {
            this.violencia = (IntervencionComun) intervencion;
            rbtnViolencia.setSelected(true);
            pnl1V.setVisible(true);
            listaHijos = new ArrayList<Hijo>();
            if (violencia.getPadre() == null && violencia.getMadre() != null) {
                Iterator<Hijo> it = violencia.getMadre().getMadreDeHijo().iterator();
                while (it.hasNext()) {
                    Hijo hijo = it.next();
                    if (hijo.getPadre() == null) {
                        listaHijos.add(hijo);
                    }
                }
            } else {
                if (violencia.getPadre() != null && violencia.getMadre() == null) {
                    Iterator<Hijo> it = violencia.getPadre().getPadreDeHijo().iterator();
                    while (it.hasNext()) {
                        Hijo hijo = it.next();
                        if (hijo.getMadre() == null) {
                            listaHijos.add(hijo);
                        }
                    }
                } else {
                    if (violencia.getPadre() != null && violencia.getMadre() != null) {
                        Iterator<Hijo> it = violencia.getPadre().getPadreDeHijo().iterator();
                        while (it.hasNext()) {
                            Hijo hijo = it.next();
                            if (violencia.getMadre().getMadreDeHijo().contains(hijo)) {
                                listaHijos.add(hijo);
                            }
                        }
                    }
                }
            }

        } catch (Exception e) {
        }
        cargarDatos();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        buttonGroup3 = new javax.swing.ButtonGroup();
        buttonGroup4 = new javax.swing.ButtonGroup();
        buttonGroup5 = new javax.swing.ButtonGroup();
        buttonGroup6 = new javax.swing.ButtonGroup();
        rbtnViolencia = new javax.swing.JRadioButton();
        rbtnAdicciones = new javax.swing.JRadioButton();
        btnCerrar = new javax.swing.JButton();
        btnMinimizar = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        pnl1V = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        txtNombrePadre = new javax.swing.JTextField();
        jLabel37 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        txtNroCallePadre = new javax.swing.JTextField();
        txtPisoPadre = new javax.swing.JTextField();
        jLabel33 = new javax.swing.JLabel();
        txtApellidoPadre = new javax.swing.JTextField();
        jLabel34 = new javax.swing.JLabel();
        cboCallePadre = new javax.swing.JComboBox();
        jLabel35 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        txtDptoPadre = new javax.swing.JTextField();
        jLabel28 = new javax.swing.JLabel();
        txtTelefonoPadre = new javax.swing.JTextField();
        jLabel29 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        txtDniPadre = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        txtEdadPadre = new javax.swing.JSpinner();
        cboEstadoCivilPadre = new javax.swing.JComboBox();
        jLabel16 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        txtObraSocialPadre = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        txtBeneficiarioPadre = new javax.swing.JTextField();
        cboTrabajoPadre = new javax.swing.JComboBox();
        jLabel38 = new javax.swing.JLabel();
        txtTrabajoPadre = new javax.swing.JTextField();
        jPanel5 = new javax.swing.JPanel();
        jLabel48 = new javax.swing.JLabel();
        txtNombreNinio = new javax.swing.JTextField();
        dtpFechaIngreso = new com.toedter.calendar.JDateChooser();
        jLabel7 = new javax.swing.JLabel();
        txtNroCaso = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jPanel6 = new javax.swing.JPanel();
        jLabel49 = new javax.swing.JLabel();
        cboComposicionFamiliar = new javax.swing.JComboBox();
        cboViolencia = new javax.swing.JComboBox();
        jLabel50 = new javax.swing.JLabel();
        cboFamDiscapacitado = new javax.swing.JComboBox();
        jLabel51 = new javax.swing.JLabel();
        pnl2V = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        txtNombreMadre = new javax.swing.JTextField();
        jLabel52 = new javax.swing.JLabel();
        jLabel53 = new javax.swing.JLabel();
        txtNroCalleMadre = new javax.swing.JTextField();
        txtPisoMadre = new javax.swing.JTextField();
        jLabel54 = new javax.swing.JLabel();
        txtApellidoMadre = new javax.swing.JTextField();
        jLabel55 = new javax.swing.JLabel();
        cboCalleMadre = new javax.swing.JComboBox();
        jLabel56 = new javax.swing.JLabel();
        jLabel57 = new javax.swing.JLabel();
        txtDptoMadre = new javax.swing.JTextField();
        jLabel58 = new javax.swing.JLabel();
        txtTelefonoMadre = new javax.swing.JTextField();
        jLabel59 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        txtDniMadre = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        txtEdadMadre = new javax.swing.JSpinner();
        cboEstadoCivilMadre = new javax.swing.JComboBox();
        jLabel18 = new javax.swing.JLabel();
        jLabel60 = new javax.swing.JLabel();
        txtObraSocialMadre = new javax.swing.JTextField();
        jLabel61 = new javax.swing.JLabel();
        txtBeneficiarioMadre = new javax.swing.JTextField();
        cboTrabajoMadre = new javax.swing.JComboBox();
        jLabel62 = new javax.swing.JLabel();
        txtTrabajoMadre = new javax.swing.JTextField();
        jPanel4 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tlbHijos = new javax.swing.JTable();
        jLabel63 = new javax.swing.JLabel();
        txtNombreHijo = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        txtEdadHijo = new javax.swing.JSpinner();
        jLabel64 = new javax.swing.JLabel();
        txtApellidoHijo = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        btnAgregar = new javax.swing.JButton();
        cboEscolaridad = new javax.swing.JComboBox();
        btnAgregar1 = new javax.swing.JButton();
        pnl3V = new javax.swing.JPanel();
        jPanel11 = new javax.swing.JPanel();
        jLabel78 = new javax.swing.JLabel();
        jLabel79 = new javax.swing.JLabel();
        txtEquipo102V = new javax.swing.JTextField();
        txtIntRealizadaV = new javax.swing.JTextField();
        jLabel23 = new javax.swing.JLabel();
        txtEntrevistadoV = new javax.swing.JTextField();
        dtpFechaV = new com.toedter.calendar.JDateChooser();
        jLabel80 = new javax.swing.JLabel();
        jPanel12 = new javax.swing.JPanel();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        jLabel45 = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        jLabel44 = new javax.swing.JLabel();
        cboIntervinoCop = new javax.swing.JComboBox();
        cboIntervinoJuz = new javax.swing.JComboBox();
        cboIntervinoServ = new javax.swing.JComboBox();
        cboConoceServ = new javax.swing.JComboBox();
        txtZonaServ = new javax.swing.JTextField();
        cboAsesoria = new javax.swing.JComboBox();
        txtComisaria = new javax.swing.JTextField();
        txtJuzgado = new javax.swing.JTextField();
        txtCopnaf = new javax.swing.JTextField();
        txtAsesoria = new javax.swing.JTextField();
        pnl1A = new javax.swing.JPanel();
        jPanel16 = new javax.swing.JPanel();
        jLabel93 = new javax.swing.JLabel();
        txtNombreNinio3 = new javax.swing.JTextField();
        dtpFechaIngreso3 = new com.toedter.calendar.JDateChooser();
        jLabel11 = new javax.swing.JLabel();
        txtNroCaso3 = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jPanel17 = new javax.swing.JPanel();
        rbtnPrimario = new javax.swing.JRadioButton();
        rbtnSecundario = new javax.swing.JRadioButton();
        rbtnUniversitario = new javax.swing.JRadioButton();
        cboPrimario = new javax.swing.JComboBox();
        cboSecundario = new javax.swing.JComboBox();
        jPanel22 = new javax.swing.JPanel();
        jLabel40 = new javax.swing.JLabel();
        txtTrabajo = new javax.swing.JTextField();
        jLabel41 = new javax.swing.JLabel();
        txtObraSocial = new javax.swing.JTextField();
        cboTrabajo = new javax.swing.JComboBox();
        jPanel18 = new javax.swing.JPanel();
        rbtnSeparado1 = new javax.swing.JRadioButton();
        rbtnCasado1 = new javax.swing.JRadioButton();
        rbtnFamilia1 = new javax.swing.JRadioButton();
        rbtnHijos1 = new javax.swing.JRadioButton();
        pnl2A = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        jLabel75 = new javax.swing.JLabel();
        txtEquipo102A = new javax.swing.JTextField();
        txtIntervencionA = new javax.swing.JTextField();
        jLabel76 = new javax.swing.JLabel();
        jLabel77 = new javax.swing.JLabel();
        txtEntrevistadoA = new javax.swing.JTextField();
        dtpFechaA = new com.toedter.calendar.JDateChooser();
        jLabel22 = new javax.swing.JLabel();
        jPanel20 = new javax.swing.JPanel();
        txtEdadInicio = new javax.swing.JSpinner();
        jLabel19 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        cboSustInicio = new javax.swing.JComboBox();
        cboSustAbuso = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        rbtnTratSi = new javax.swing.JRadioButton();
        rbtnTratNo = new javax.swing.JRadioButton();
        jLabel9 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        txtCual = new javax.swing.JTextField();
        txtDonde = new javax.swing.JTextField();
        rbtnConsumeSi = new javax.swing.JRadioButton();
        jLabel21 = new javax.swing.JLabel();
        rbtnConsumeNo = new javax.swing.JRadioButton();
        txtOtraInicio = new javax.swing.JTextField();
        txtOtraAbuso = new javax.swing.JTextField();
        btnSiguiente = new javax.swing.JButton();
        btnImprimir = new javax.swing.JButton();
        btnAnterior = new javax.swing.JButton();

        buttonGroup1.add(rbtnViolencia);
        rbtnViolencia.setFont(new java.awt.Font("Tahoma", 1, 12));
        rbtnViolencia.setText("Intervención por violencia");
        rbtnViolencia.setName("rbtnViolencia"); // NOI18N
        rbtnViolencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtnViolenciaActionPerformed(evt);
            }
        });

        buttonGroup1.add(rbtnAdicciones);
        rbtnAdicciones.setFont(new java.awt.Font("Tahoma", 1, 12));
        rbtnAdicciones.setText("Intervención por adicciones");
        rbtnAdicciones.setName("rbtnAdicciones"); // NOI18N
        rbtnAdicciones.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtnAdiccionesActionPerformed(evt);
            }
        });

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        btnCerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/cerrar-normal.png"))); // NOI18N
        btnCerrar.setBorder(null);
        btnCerrar.setBorderPainted(false);
        btnCerrar.setFocusPainted(false);
        btnCerrar.setName("btnCerrar"); // NOI18N
        btnCerrar.setOpaque(false);
        btnCerrar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnCerrarMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnCerrarMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                btnCerrarMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                btnCerrarMouseReleased(evt);
            }
        });
        btnCerrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCerrarActionPerformed(evt);
            }
        });

        btnMinimizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/minimizar-normal.png"))); // NOI18N
        btnMinimizar.setBorder(null);
        btnMinimizar.setBorderPainted(false);
        btnMinimizar.setFocusPainted(false);
        btnMinimizar.setName("btnMinimizar"); // NOI18N
        btnMinimizar.setOpaque(false);
        btnMinimizar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnMinimizarMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnMinimizarMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                btnMinimizarMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                btnMinimizarMouseReleased(evt);
            }
        });
        btnMinimizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMinimizarActionPerformed(evt);
            }
        });

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/titulo-modificar-intervenci.png"))); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jLayeredPane1.setName("jLayeredPane1"); // NOI18N

        pnl1V.setName("pnl1V"); // NOI18N

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos del padre", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel3.setFont(new java.awt.Font("Tahoma", 0, 12));
        jPanel3.setName("jPanel3"); // NOI18N

        txtNombrePadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtNombrePadre.setName("txtNombrePadre"); // NOI18N

        jLabel37.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel37.setText("Dpto.");
        jLabel37.setName("jLabel37"); // NOI18N

        jLabel36.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel36.setText("Piso");
        jLabel36.setName("jLabel36"); // NOI18N

        txtNroCallePadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtNroCallePadre.setName("txtNroCallePadre"); // NOI18N

        txtPisoPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtPisoPadre.setName("txtPisoPadre"); // NOI18N

        jLabel33.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel33.setText("Dirección:");
        jLabel33.setName("jLabel33"); // NOI18N

        txtApellidoPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtApellidoPadre.setName("txtApellidoPadre"); // NOI18N

        jLabel34.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel34.setText("Calle");
        jLabel34.setName("jLabel34"); // NOI18N

        cboCallePadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboCallePadre.setName("cboCallePadre"); // NOI18N

        jLabel35.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel35.setText("Nro.");
        jLabel35.setName("jLabel35"); // NOI18N

        jLabel26.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel26.setText("Apellido");
        jLabel26.setName("jLabel26"); // NOI18N

        txtDptoPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtDptoPadre.setName("txtDptoPadre"); // NOI18N

        jLabel28.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel28.setText("Nombre");
        jLabel28.setName("jLabel28"); // NOI18N

        txtTelefonoPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtTelefonoPadre.setName("txtTelefonoPadre"); // NOI18N

        jLabel29.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel29.setText("Teléfono");
        jLabel29.setName("jLabel29"); // NOI18N

        jLabel13.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel13.setText("DNI");
        jLabel13.setName("jLabel13"); // NOI18N

        txtDniPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtDniPadre.setName("txtDniPadre"); // NOI18N

        jLabel10.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel10.setText("Edad");
        jLabel10.setName("jLabel10"); // NOI18N

        txtEdadPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtEdadPadre.setName("txtEdadPadre"); // NOI18N

        cboEstadoCivilPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboEstadoCivilPadre.setModel(new DefaultComboBoxModel(TipoEstadoCivil.values()));
        cboEstadoCivilPadre.setName("cboEstadoCivilPadre"); // NOI18N

        jLabel16.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel16.setText("Estado civil");
        jLabel16.setName("jLabel16"); // NOI18N

        jLabel30.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel30.setText("Obra social");
        jLabel30.setName("jLabel30"); // NOI18N

        txtObraSocialPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtObraSocialPadre.setName("txtObraSocialPadre"); // NOI18N

        jLabel27.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel27.setText("Beneficiario");
        jLabel27.setName("jLabel27"); // NOI18N

        txtBeneficiarioPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtBeneficiarioPadre.setName("txtBeneficiarioPadre"); // NOI18N

        cboTrabajoPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboTrabajoPadre.setModel(new DefaultComboBoxModel(TipoSituacionLaboral.values()));
        cboTrabajoPadre.setName("cboTrabajoPadre"); // NOI18N
        cboTrabajoPadre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cboTrabajoPadreActionPerformed(evt);
            }
        });

        jLabel38.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel38.setText("Trabajo");
        jLabel38.setName("jLabel38"); // NOI18N

        txtTrabajoPadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtTrabajoPadre.setEnabled(false);
        txtTrabajoPadre.setName("txtTrabajoPadre"); // NOI18N

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel28)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtNombrePadre, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel26)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtApellidoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(39, 39, 39)
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtEdadPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addComponent(jLabel13)
                                .addGap(18, 18, 18)
                                .addComponent(txtDniPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 154, Short.MAX_VALUE)
                                .addComponent(jLabel29)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtTelefonoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(91, 91, 91))
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addComponent(jLabel33)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel34)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cboCallePadre, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel3Layout.createSequentialGroup()
                                        .addGap(10, 10, 10)
                                        .addComponent(jLabel38)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(cboTrabajoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtTrabajoPadre, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE))
                                    .addGroup(jPanel3Layout.createSequentialGroup()
                                        .addComponent(jLabel35)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtNroCallePadre, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jLabel36)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtPisoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(10, 10, 10)
                                        .addComponent(jLabel37)
                                        .addGap(4, 4, 4)
                                        .addComponent(txtDptoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addGap(10, 10, 10))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel16)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cboEstadoCivilPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel30)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtObraSocialPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel27)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtBeneficiarioPadre, javax.swing.GroupLayout.DEFAULT_SIZE, 229, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel28)
                    .addComponent(txtNombrePadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel26)
                    .addComponent(txtApellidoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10)
                    .addComponent(txtEdadPadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(txtDniPadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel29)
                    .addComponent(txtTelefonoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel33)
                    .addComponent(jLabel34)
                    .addComponent(cboCallePadre, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel35)
                    .addComponent(txtNroCallePadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel36)
                    .addComponent(txtPisoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel37)
                    .addComponent(txtDptoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(cboEstadoCivilPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel38)
                    .addComponent(cboTrabajoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtTrabajoPadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel30)
                    .addComponent(txtObraSocialPadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel27)
                    .addComponent(txtBeneficiarioPadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos del caso", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel5.setName("jPanel5"); // NOI18N

        jLabel48.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel48.setText("Nombre del niño");
        jLabel48.setName("jLabel48"); // NOI18N

        txtNombreNinio.setEditable(false);
        txtNombreNinio.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtNombreNinio.setName("txtNombreNinio"); // NOI18N

        dtpFechaIngreso.setDateFormatString("dd/MM/yyyy");
        dtpFechaIngreso.setEnabled(false);
        dtpFechaIngreso.setFont(new java.awt.Font("Tahoma", 0, 12));
        dtpFechaIngreso.setName("dtpFechaIngreso"); // NOI18N

        jLabel7.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel7.setText("Fecha de ingreso");
        jLabel7.setName("jLabel7"); // NOI18N

        txtNroCaso.setEditable(false);
        txtNroCaso.setFont(new java.awt.Font("Tahoma", 0, 16));
        txtNroCaso.setName("txtNroCaso"); // NOI18N

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 16));
        jLabel2.setText("Nº de caso");
        jLabel2.setName("jLabel2"); // NOI18N

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addGap(5, 5, 5)
                        .addComponent(txtNroCaso, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel48)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtNombreNinio, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(dtpFechaIngreso, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(127, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(txtNroCaso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(20, 20, 20)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel48)
                        .addComponent(txtNombreNinio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(dtpFechaIngreso, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Estructura familiar conviviente", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel6.setName("jPanel6"); // NOI18N

        jLabel49.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel49.setText("Composición familiar");
        jLabel49.setName("jLabel49"); // NOI18N

        cboComposicionFamiliar.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboComposicionFamiliar.setModel(new DefaultComboBoxModel(TipoComposicionFamiliar.values()));
        cboComposicionFamiliar.setName("cboComposicionFamiliar"); // NOI18N

        cboViolencia.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboViolencia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "SI", "NO" }));
        cboViolencia.setSelectedIndex(-1);
        cboViolencia.setName("cboViolencia"); // NOI18N

        jLabel50.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel50.setText("Violencia conyugal");
        jLabel50.setName("jLabel50"); // NOI18N

        cboFamDiscapacitado.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboFamDiscapacitado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "SI", "NO" }));
        cboFamDiscapacitado.setSelectedIndex(-1);
        cboFamDiscapacitado.setName("cboFamDiscapacitado"); // NOI18N

        jLabel51.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel51.setText("Familiares discapacitados");
        jLabel51.setName("jLabel51"); // NOI18N

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jLabel49)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cboComposicionFamiliar, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jLabel50)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cboViolencia, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel51)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cboFamDiscapacitado, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(225, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel49)
                    .addComponent(cboComposicionFamiliar, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel50)
                    .addComponent(cboViolencia, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel51)
                    .addComponent(cboFamDiscapacitado, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pnl1VLayout = new javax.swing.GroupLayout(pnl1V);
        pnl1V.setLayout(pnl1VLayout);
        pnl1VLayout.setHorizontalGroup(
            pnl1VLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        pnl1VLayout.setVerticalGroup(
            pnl1VLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnl1VLayout.createSequentialGroup()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pnl1V.setBounds(10, 16, 658, 422);
        jLayeredPane1.add(pnl1V, javax.swing.JLayeredPane.DEFAULT_LAYER);

        pnl2V.setName("pnl2V"); // NOI18N

        jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos de la madre", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel7.setFont(new java.awt.Font("Tahoma", 0, 12));
        jPanel7.setName("jPanel7"); // NOI18N

        txtNombreMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtNombreMadre.setName("txtNombreMadre"); // NOI18N

        jLabel52.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel52.setText("Dpto.");
        jLabel52.setName("jLabel52"); // NOI18N

        jLabel53.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel53.setText("Piso");
        jLabel53.setName("jLabel53"); // NOI18N

        txtNroCalleMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtNroCalleMadre.setName("txtNroCalleMadre"); // NOI18N

        txtPisoMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtPisoMadre.setName("txtPisoMadre"); // NOI18N

        jLabel54.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel54.setText("Dirección:");
        jLabel54.setName("jLabel54"); // NOI18N

        txtApellidoMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtApellidoMadre.setName("txtApellidoMadre"); // NOI18N

        jLabel55.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel55.setText("Calle");
        jLabel55.setName("jLabel55"); // NOI18N

        cboCalleMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboCalleMadre.setName("cboCalleMadre"); // NOI18N

        jLabel56.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel56.setText("Nro.");
        jLabel56.setName("jLabel56"); // NOI18N

        jLabel57.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel57.setText("Apellido");
        jLabel57.setName("jLabel57"); // NOI18N

        txtDptoMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtDptoMadre.setName("txtDptoMadre"); // NOI18N

        jLabel58.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel58.setText("Nombre");
        jLabel58.setName("jLabel58"); // NOI18N

        txtTelefonoMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtTelefonoMadre.setName("txtTelefonoMadre"); // NOI18N

        jLabel59.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel59.setText("Teléfono");
        jLabel59.setName("jLabel59"); // NOI18N

        jLabel15.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel15.setText("DNI");
        jLabel15.setName("jLabel15"); // NOI18N

        txtDniMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtDniMadre.setName("txtDniMadre"); // NOI18N

        jLabel12.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel12.setText("Edad");
        jLabel12.setName("jLabel12"); // NOI18N

        txtEdadMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtEdadMadre.setName("txtEdadMadre"); // NOI18N

        cboEstadoCivilMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboEstadoCivilMadre.setModel(new DefaultComboBoxModel(TipoEstadoCivil.values()));
        cboEstadoCivilMadre.setName("cboEstadoCivilMadre"); // NOI18N

        jLabel18.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel18.setText("Estado civil");
        jLabel18.setName("jLabel18"); // NOI18N

        jLabel60.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel60.setText("Obra social");
        jLabel60.setName("jLabel60"); // NOI18N

        txtObraSocialMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtObraSocialMadre.setName("txtObraSocialMadre"); // NOI18N

        jLabel61.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel61.setText("Beneficiario");
        jLabel61.setName("jLabel61"); // NOI18N

        txtBeneficiarioMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtBeneficiarioMadre.setName("txtBeneficiarioMadre"); // NOI18N

        cboTrabajoMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboTrabajoMadre.setModel(new DefaultComboBoxModel(TipoSituacionLaboral.values()));
        cboTrabajoMadre.setName("cboTrabajoMadre"); // NOI18N
        cboTrabajoMadre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cboTrabajoMadreActionPerformed(evt);
            }
        });

        jLabel62.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel62.setText("Trabajo");
        jLabel62.setName("jLabel62"); // NOI18N

        txtTrabajoMadre.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtTrabajoMadre.setEnabled(false);
        txtTrabajoMadre.setName("txtTrabajoMadre"); // NOI18N

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel58)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtNombreMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel57)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtApellidoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(39, 39, 39)
                        .addComponent(jLabel12)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtEdadMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel7Layout.createSequentialGroup()
                                .addComponent(jLabel15)
                                .addGap(18, 18, 18)
                                .addComponent(txtDniMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 154, Short.MAX_VALUE)
                                .addComponent(jLabel59)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtTelefonoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(91, 91, 91))
                            .addGroup(jPanel7Layout.createSequentialGroup()
                                .addComponent(jLabel54)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel55)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cboCalleMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel7Layout.createSequentialGroup()
                                        .addGap(10, 10, 10)
                                        .addComponent(jLabel62)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(cboTrabajoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtTrabajoMadre, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE))
                                    .addGroup(jPanel7Layout.createSequentialGroup()
                                        .addComponent(jLabel56)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtNroCalleMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jLabel53)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtPisoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(10, 10, 10)
                                        .addComponent(jLabel52)
                                        .addGap(4, 4, 4)
                                        .addComponent(txtDptoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addGap(10, 10, 10))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel18)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cboEstadoCivilMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel60)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtObraSocialMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel61)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtBeneficiarioMadre, javax.swing.GroupLayout.DEFAULT_SIZE, 229, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel58)
                    .addComponent(txtNombreMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel57)
                    .addComponent(txtApellidoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12)
                    .addComponent(txtEdadMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel15)
                    .addComponent(txtDniMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel59)
                    .addComponent(txtTelefonoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel54)
                    .addComponent(jLabel55)
                    .addComponent(cboCalleMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel56)
                    .addComponent(txtNroCalleMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel53)
                    .addComponent(txtPisoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel52)
                    .addComponent(txtDptoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18)
                    .addComponent(cboEstadoCivilMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel62)
                    .addComponent(cboTrabajoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtTrabajoMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel60)
                    .addComponent(txtObraSocialMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel61)
                    .addComponent(txtBeneficiarioMadre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Hijos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel4.setName("jPanel4"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        tlbHijos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nombre", "Edad", "Escolaridad"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tlbHijos.setName("tlbHijos"); // NOI18N
        jScrollPane1.setViewportView(tlbHijos);

        jLabel63.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel63.setText("Nombre");
        jLabel63.setName("jLabel63"); // NOI18N

        txtNombreHijo.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtNombreHijo.setName("txtNombreHijo"); // NOI18N

        jLabel14.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel14.setText("Edad");
        jLabel14.setName("jLabel14"); // NOI18N

        txtEdadHijo.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtEdadHijo.setName("txtEdadHijo"); // NOI18N

        jLabel64.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel64.setText("Apellido");
        jLabel64.setName("jLabel64"); // NOI18N

        txtApellidoHijo.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtApellidoHijo.setName("txtApellidoHijo"); // NOI18N

        jLabel17.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel17.setText("Escolaridad");
        jLabel17.setName("jLabel17"); // NOI18N

        btnAgregar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/agregar-hijo.png"))); // NOI18N
        btnAgregar.setBorderPainted(false);
        btnAgregar.setFocusPainted(false);
        btnAgregar.setName("btnAgregar"); // NOI18N
        btnAgregar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgregarActionPerformed(evt);
            }
        });

        cboEscolaridad.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboEscolaridad.setModel(new DefaultComboBoxModel(TipoEscolaridad.values()));
        cboEscolaridad.setName("cboEscolaridad"); // NOI18N

        btnAgregar1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/eliminar-hijo.png"))); // NOI18N
        btnAgregar1.setBorderPainted(false);
        btnAgregar1.setFocusPainted(false);
        btnAgregar1.setName("btnAgregar1"); // NOI18N
        btnAgregar1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgregar1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(jLabel63)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtNombreHijo, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel64)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtApellidoHijo, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(jLabel17)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(cboEscolaridad, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(72, 72, 72)
                                .addComponent(jLabel14)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtEdadHijo, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnAgregar1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnAgregar, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(38, 38, 38))))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel63)
                            .addComponent(txtNombreHijo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel64)
                            .addComponent(txtApellidoHijo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel17)
                            .addComponent(jLabel14)
                            .addComponent(txtEdadHijo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cboEscolaridad, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(btnAgregar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnAgregar1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(7, 7, 7)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 105, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout pnl2VLayout = new javax.swing.GroupLayout(pnl2V);
        pnl2V.setLayout(pnl2VLayout);
        pnl2VLayout.setHorizontalGroup(
            pnl2VLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        pnl2VLayout.setVerticalGroup(
            pnl2VLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnl2VLayout.createSequentialGroup()
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnl2V.setBounds(10, 16, 658, 422);
        jLayeredPane1.add(pnl2V, javax.swing.JLayeredPane.DEFAULT_LAYER);

        pnl3V.setName("pnl3V"); // NOI18N

        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos de la intervención", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel11.setFont(new java.awt.Font("Tahoma", 0, 12));
        jPanel11.setName("jPanel11"); // NOI18N

        jLabel78.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel78.setText("Entrevistado");
        jLabel78.setName("jLabel78"); // NOI18N

        jLabel79.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel79.setText("Equipo de 102");
        jLabel79.setName("jLabel79"); // NOI18N

        txtEquipo102V.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtEquipo102V.setName("txtEquipo102V"); // NOI18N

        txtIntRealizadaV.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtIntRealizadaV.setName("txtIntRealizadaV"); // NOI18N

        jLabel23.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel23.setText("Fecha");
        jLabel23.setName("jLabel23"); // NOI18N

        txtEntrevistadoV.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtEntrevistadoV.setName("txtEntrevistadoV"); // NOI18N

        dtpFechaV.setDateFormatString("dd/MM/yyyy");
        dtpFechaV.setFont(new java.awt.Font("Tahoma", 0, 12));
        dtpFechaV.setName("dtpFechaV"); // NOI18N

        jLabel80.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel80.setText("Intervención realizada");
        jLabel80.setName("jLabel80"); // NOI18N

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(jLabel23)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(dtpFechaV, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)
                        .addComponent(jLabel80)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtIntRealizadaV, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(jLabel79)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtEquipo102V, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(27, 27, 27)
                        .addComponent(jLabel78)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtEntrevistadoV, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE)))
                .addGap(42, 42, 42))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel80)
                        .addComponent(txtIntRealizadaV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(dtpFechaV, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel79)
                    .addComponent(txtEquipo102V, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel78)
                    .addComponent(txtEntrevistadoV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Instituciones que pueden informar del niño", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel12.setName("jPanel12"); // NOI18N

        jLabel24.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel24.setText("Comisaría");
        jLabel24.setName("jLabel24"); // NOI18N

        jLabel25.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel25.setText("COPNAF");
        jLabel25.setName("jLabel25"); // NOI18N

        jLabel31.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel31.setText("Juzgado de familia");
        jLabel31.setName("jLabel31"); // NOI18N

        jLabel32.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel32.setText("Asesoría");
        jLabel32.setName("jLabel32"); // NOI18N

        jLabel39.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel39.setText("Serv. protec. de derechos ");
        jLabel39.setName("jLabel39"); // NOI18N

        jLabel42.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel42.setText("¿Ha intervenido?");
        jLabel42.setName("jLabel42"); // NOI18N

        jLabel45.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel45.setText("¿Lo conoce?");
        jLabel45.setName("jLabel45"); // NOI18N

        jLabel46.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel46.setText("¿Zona?");
        jLabel46.setName("jLabel46"); // NOI18N

        jLabel43.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel43.setText("¿Ha intervenido?");
        jLabel43.setName("jLabel43"); // NOI18N

        jLabel44.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel44.setText("¿Ha intervenido?");
        jLabel44.setName("jLabel44"); // NOI18N

        cboIntervinoCop.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboIntervinoCop.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "SI", "NO" }));
        cboIntervinoCop.setSelectedIndex(-1);
        cboIntervinoCop.setName("cboIntervinoCop"); // NOI18N

        cboIntervinoJuz.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboIntervinoJuz.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "SI", "NO" }));
        cboIntervinoJuz.setSelectedIndex(-1);
        cboIntervinoJuz.setName("cboIntervinoJuz"); // NOI18N

        cboIntervinoServ.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboIntervinoServ.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "SI", "NO" }));
        cboIntervinoServ.setSelectedIndex(-1);
        cboIntervinoServ.setName("cboIntervinoServ"); // NOI18N

        cboConoceServ.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboConoceServ.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "SI", "NO" }));
        cboConoceServ.setSelectedIndex(-1);
        cboConoceServ.setName("cboConoceServ"); // NOI18N

        txtZonaServ.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtZonaServ.setName("txtZonaServ"); // NOI18N

        cboAsesoria.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboAsesoria.setModel(new DefaultComboBoxModel(TipoAsesoria.values()));
        cboAsesoria.setName("cboAsesoria"); // NOI18N

        txtComisaria.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtComisaria.setName("txtComisaria"); // NOI18N

        txtJuzgado.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtJuzgado.setName("txtJuzgado"); // NOI18N

        txtCopnaf.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtCopnaf.setName("txtCopnaf"); // NOI18N

        txtAsesoria.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtAsesoria.setName("txtAsesoria"); // NOI18N

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addComponent(jLabel24)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtComisaria, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addComponent(jLabel25)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtCopnaf, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel43)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cboIntervinoCop, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addComponent(jLabel31)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtJuzgado, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel44)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cboIntervinoJuz, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addComponent(jLabel32)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cboAsesoria, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtAsesoria, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addComponent(jLabel39)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel12Layout.createSequentialGroup()
                                .addComponent(jLabel46)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtZonaServ, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel12Layout.createSequentialGroup()
                                .addComponent(jLabel45)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(cboConoceServ, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(39, 39, 39)
                                .addComponent(jLabel42)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(cboIntervinoServ, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(93, Short.MAX_VALUE))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel24)
                    .addComponent(txtComisaria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(txtJuzgado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel44)
                    .addComponent(cboIntervinoJuz, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel32)
                    .addComponent(cboAsesoria, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtAsesoria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel25)
                    .addComponent(jLabel43)
                    .addComponent(cboIntervinoCop, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCopnaf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel39)
                    .addComponent(jLabel45)
                    .addComponent(jLabel42)
                    .addComponent(cboIntervinoServ, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cboConoceServ, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel46)
                    .addComponent(txtZonaServ, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pnl3VLayout = new javax.swing.GroupLayout(pnl3V);
        pnl3V.setLayout(pnl3VLayout);
        pnl3VLayout.setHorizontalGroup(
            pnl3VLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        pnl3VLayout.setVerticalGroup(
            pnl3VLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnl3VLayout.createSequentialGroup()
                .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(109, 109, 109))
        );

        pnl3V.setBounds(10, 16, 658, 420);
        jLayeredPane1.add(pnl3V, javax.swing.JLayeredPane.DEFAULT_LAYER);

        pnl1A.setName("pnl1A"); // NOI18N

        jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos del caso", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel16.setName("jPanel16"); // NOI18N

        jLabel93.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel93.setText("Nombre del niño");
        jLabel93.setName("jLabel93"); // NOI18N

        txtNombreNinio3.setEditable(false);
        txtNombreNinio3.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtNombreNinio3.setName("txtNombreNinio3"); // NOI18N

        dtpFechaIngreso3.setDateFormatString("dd/MM/yyyy");
        dtpFechaIngreso3.setEnabled(false);
        dtpFechaIngreso3.setFont(new java.awt.Font("Tahoma", 0, 12));
        dtpFechaIngreso3.setName("dtpFechaIngreso3"); // NOI18N

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel11.setText("Fecha de ingreso");
        jLabel11.setName("jLabel11"); // NOI18N

        txtNroCaso3.setEditable(false);
        txtNroCaso3.setFont(new java.awt.Font("Tahoma", 0, 16));
        txtNroCaso3.setName("txtNroCaso3"); // NOI18N

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 16));
        jLabel5.setText("Nº de caso");
        jLabel5.setName("jLabel5"); // NOI18N

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addGap(5, 5, 5)
                        .addComponent(txtNroCaso3, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addComponent(jLabel93)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtNombreNinio3, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(dtpFechaIngreso3, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(127, Short.MAX_VALUE))
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(txtNroCaso3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(20, 20, 20)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel93)
                        .addComponent(txtNombreNinio3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(dtpFechaIngreso3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Escolaridad", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel17.setName("jPanel17"); // NOI18N

        buttonGroup6.add(rbtnPrimario);
        rbtnPrimario.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnPrimario.setText("Primario");
        rbtnPrimario.setName("rbtnPrimario"); // NOI18N
        rbtnPrimario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtnPrimarioActionPerformed(evt);
            }
        });

        buttonGroup6.add(rbtnSecundario);
        rbtnSecundario.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnSecundario.setText("Secundario");
        rbtnSecundario.setName("rbtnSecundario"); // NOI18N
        rbtnSecundario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtnSecundarioActionPerformed(evt);
            }
        });

        buttonGroup6.add(rbtnUniversitario);
        rbtnUniversitario.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnUniversitario.setText("Terciario / Universitario");
        rbtnUniversitario.setName("rbtnUniversitario"); // NOI18N
        rbtnUniversitario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtnUniversitarioActionPerformed(evt);
            }
        });

        cboPrimario.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboPrimario.setModel(new DefaultComboBoxModel(TipoCompleto.values()));
        cboPrimario.setEnabled(false);
        cboPrimario.setName("cboPrimario"); // NOI18N

        cboSecundario.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboSecundario.setModel(new DefaultComboBoxModel(TipoCompleto.values()));
        cboSecundario.setEnabled(false);
        cboSecundario.setName("cboSecundario"); // NOI18N

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(rbtnPrimario)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(cboPrimario, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addComponent(rbtnSecundario)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(cboSecundario, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
                .addComponent(rbtnUniversitario)
                .addGap(34, 34, 34))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                .addContainerGap(11, Short.MAX_VALUE)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rbtnPrimario)
                    .addComponent(cboPrimario, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(rbtnSecundario)
                    .addComponent(rbtnUniversitario)
                    .addComponent(cboSecundario, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel22.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Situación laboral", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel22.setFont(new java.awt.Font("Tahoma", 0, 12));
        jPanel22.setName("jPanel22"); // NOI18N

        jLabel40.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel40.setText("Trabajo");
        jLabel40.setName("jLabel40"); // NOI18N

        txtTrabajo.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtTrabajo.setEnabled(false);
        txtTrabajo.setName("txtTrabajo"); // NOI18N

        jLabel41.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel41.setText("Obra social");
        jLabel41.setName("jLabel41"); // NOI18N

        txtObraSocial.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtObraSocial.setName("txtObraSocial"); // NOI18N

        cboTrabajo.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboTrabajo.setModel(new DefaultComboBoxModel(TipoSituacionLaboral.values()));
        cboTrabajo.setName("cboTrabajo"); // NOI18N
        cboTrabajo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cboTrabajoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
        jPanel22.setLayout(jPanel22Layout);
        jPanel22Layout.setHorizontalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel22Layout.createSequentialGroup()
                        .addComponent(jLabel40)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cboTrabajo, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtTrabajo, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel22Layout.createSequentialGroup()
                        .addComponent(jLabel41)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtObraSocial, javax.swing.GroupLayout.PREFERRED_SIZE, 308, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(239, Short.MAX_VALUE))
        );
        jPanel22Layout.setVerticalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel40)
                    .addComponent(txtTrabajo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cboTrabajo, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel41)
                    .addComponent(txtObraSocial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel18.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Estructura familiar conviviente", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel18.setName("jPanel18"); // NOI18N

        buttonGroup2.add(rbtnSeparado1);
        rbtnSeparado1.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnSeparado1.setText("Separado");
        rbtnSeparado1.setName("rbtnSeparado1"); // NOI18N

        buttonGroup2.add(rbtnCasado1);
        rbtnCasado1.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnCasado1.setText("Casado / Concubinato");
        rbtnCasado1.setName("rbtnCasado1"); // NOI18N

        buttonGroup2.add(rbtnFamilia1);
        rbtnFamilia1.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnFamilia1.setText("Familia de origen");
        rbtnFamilia1.setName("rbtnFamilia1"); // NOI18N

        buttonGroup2.add(rbtnHijos1);
        rbtnHijos1.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnHijos1.setText("Hijos");
        rbtnHijos1.setName("rbtnHijos1"); // NOI18N

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addComponent(rbtnSeparado1)
                .addGap(52, 52, 52)
                .addComponent(rbtnCasado1)
                .addGap(63, 63, 63)
                .addComponent(rbtnFamilia1)
                .addGap(62, 62, 62)
                .addComponent(rbtnHijos1)
                .addContainerGap(67, Short.MAX_VALUE))
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rbtnSeparado1)
                    .addComponent(rbtnCasado1)
                    .addComponent(rbtnFamilia1)
                    .addComponent(rbtnHijos1))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pnl1ALayout = new javax.swing.GroupLayout(pnl1A);
        pnl1A.setLayout(pnl1ALayout);
        pnl1ALayout.setHorizontalGroup(
            pnl1ALayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        pnl1ALayout.setVerticalGroup(
            pnl1ALayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnl1ALayout.createSequentialGroup()
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(17, 17, 17)
                .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(40, 40, 40))
        );

        pnl1A.setBounds(10, 16, 658, 437);
        jLayeredPane1.add(pnl1A, javax.swing.JLayeredPane.DEFAULT_LAYER);

        pnl2A.setName("pnl2A"); // NOI18N

        jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos de la intervención", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel19.setFont(new java.awt.Font("Tahoma", 0, 12));
        jPanel19.setName("jPanel19"); // NOI18N

        jLabel75.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel75.setText("Intervención realizada");
        jLabel75.setName("jLabel75"); // NOI18N

        txtEquipo102A.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtEquipo102A.setName("txtEquipo102A"); // NOI18N

        txtIntervencionA.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtIntervencionA.setName("txtIntervencionA"); // NOI18N

        jLabel76.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel76.setText("Entrevistado");
        jLabel76.setName("jLabel76"); // NOI18N

        jLabel77.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel77.setText("Equipo de 102");
        jLabel77.setName("jLabel77"); // NOI18N

        txtEntrevistadoA.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtEntrevistadoA.setName("txtEntrevistadoA"); // NOI18N

        dtpFechaA.setDateFormatString("dd/MM/yyyy");
        dtpFechaA.setFont(new java.awt.Font("Tahoma", 0, 12));
        dtpFechaA.setName("dtpFechaA"); // NOI18N

        jLabel22.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel22.setText("Fecha");
        jLabel22.setName("jLabel22"); // NOI18N

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addComponent(jLabel22)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(dtpFechaA, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)
                        .addComponent(jLabel75)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtIntervencionA, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(42, 42, 42))
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addComponent(jLabel77)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtEquipo102A, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(27, 27, 27)
                        .addComponent(jLabel76)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtEntrevistadoA, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel75)
                        .addComponent(txtIntervencionA, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(dtpFechaA, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel77)
                    .addComponent(txtEquipo102A, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel76)
                    .addComponent(txtEntrevistadoA, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Consumo", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel20.setName("jPanel20"); // NOI18N

        txtEdadInicio.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtEdadInicio.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(1), Integer.valueOf(1), null, Integer.valueOf(1)));
        txtEdadInicio.setName("txtEdadInicio"); // NOI18N

        jLabel19.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel19.setText("Edad de inicio");
        jLabel19.setName("jLabel19"); // NOI18N

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel4.setText("Sustancia de inicio");
        jLabel4.setName("jLabel4"); // NOI18N

        cboSustInicio.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboSustInicio.setModel(new DefaultComboBoxModel(TipoSustancia.values()));
        cboSustInicio.setName("cboSustInicio"); // NOI18N
        cboSustInicio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cboSustInicioActionPerformed(evt);
            }
        });

        cboSustAbuso.setFont(new java.awt.Font("Tahoma", 0, 12));
        cboSustAbuso.setModel(new DefaultComboBoxModel(TipoSustancia.values()));
        cboSustAbuso.setName("cboSustAbuso"); // NOI18N
        cboSustAbuso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cboSustAbusoActionPerformed(evt);
            }
        });

        jLabel6.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel6.setText("Sustancia de abuso");
        jLabel6.setName("jLabel6"); // NOI18N

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel8.setText("Tratamientos anteriores");
        jLabel8.setName("jLabel8"); // NOI18N

        buttonGroup5.add(rbtnTratSi);
        rbtnTratSi.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnTratSi.setText("Si");
        rbtnTratSi.setName("rbtnTratSi"); // NOI18N
        rbtnTratSi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtnTratSiActionPerformed(evt);
            }
        });

        buttonGroup5.add(rbtnTratNo);
        rbtnTratNo.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnTratNo.setText("No");
        rbtnTratNo.setName("rbtnTratNo"); // NOI18N
        rbtnTratNo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtnTratNoActionPerformed(evt);
            }
        });

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel9.setText("¿Cual?");
        jLabel9.setName("jLabel9"); // NOI18N

        jLabel20.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel20.setText("¿Donde?");
        jLabel20.setName("jLabel20"); // NOI18N

        txtCual.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtCual.setEnabled(false);
        txtCual.setName("txtCual"); // NOI18N

        txtDonde.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtDonde.setEnabled(false);
        txtDonde.setName("txtDonde"); // NOI18N

        buttonGroup4.add(rbtnConsumeSi);
        rbtnConsumeSi.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnConsumeSi.setText("Si");
        rbtnConsumeSi.setName("rbtnConsumeSi"); // NOI18N

        jLabel21.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel21.setText("¿Consume alcohol?");
        jLabel21.setName("jLabel21"); // NOI18N

        buttonGroup4.add(rbtnConsumeNo);
        rbtnConsumeNo.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtnConsumeNo.setText("No");
        rbtnConsumeNo.setName("rbtnConsumeNo"); // NOI18N

        txtOtraInicio.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtOtraInicio.setEnabled(false);
        txtOtraInicio.setName("txtOtraInicio"); // NOI18N

        txtOtraAbuso.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtOtraAbuso.setEnabled(false);
        txtOtraAbuso.setName("txtOtraAbuso"); // NOI18N

        javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addComponent(jLabel21)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(rbtnConsumeSi)
                        .addGap(18, 18, 18)
                        .addComponent(rbtnConsumeNo))
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rbtnTratNo)
                            .addGroup(jPanel20Layout.createSequentialGroup()
                                .addComponent(rbtnTratSi)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel9)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtCual, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel20)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtDonde, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addComponent(jLabel19)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtEdadInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(191, 191, 191))
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel20Layout.createSequentialGroup()
                                .addComponent(jLabel4)
                                .addGap(24, 24, 24)
                                .addComponent(cboSustInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel20Layout.createSequentialGroup()
                                .addComponent(jLabel6)
                                .addGap(18, 18, 18)
                                .addComponent(cboSustAbuso, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(txtOtraAbuso)
                            .addComponent(txtOtraInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(txtEdadInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(cboSustInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(cboSustAbuso, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel21)
                            .addComponent(rbtnConsumeSi)
                            .addComponent(rbtnConsumeNo)))
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addComponent(txtOtraInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtOtraAbuso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(rbtnTratSi)
                    .addComponent(txtCual, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9)
                    .addComponent(txtDonde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel20))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rbtnTratNo)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pnl2ALayout = new javax.swing.GroupLayout(pnl2A);
        pnl2A.setLayout(pnl2ALayout);
        pnl2ALayout.setHorizontalGroup(
            pnl2ALayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        pnl2ALayout.setVerticalGroup(
            pnl2ALayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnl2ALayout.createSequentialGroup()
                .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(119, 119, 119))
        );

        pnl2A.setBounds(10, 16, 658, 439);
        jLayeredPane1.add(pnl2A, javax.swing.JLayeredPane.DEFAULT_LAYER);

        btnSiguiente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/siguiente.png"))); // NOI18N
        btnSiguiente.setBorderPainted(false);
        btnSiguiente.setFocusPainted(false);
        btnSiguiente.setName("btnSiguiente"); // NOI18N
        btnSiguiente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSiguienteActionPerformed(evt);
            }
        });

        btnImprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/imprimir.png"))); // NOI18N
        btnImprimir.setBorderPainted(false);
        btnImprimir.setFocusPainted(false);
        btnImprimir.setName("btnImprimir"); // NOI18N
        btnImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirActionPerformed(evt);
            }
        });

        btnAnterior.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/anterior.png"))); // NOI18N
        btnAnterior.setBorderPainted(false);
        btnAnterior.setFocusPainted(false);
        btnAnterior.setName("btnAnterior"); // NOI18N
        btnAnterior.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAnteriorActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(btnAnterior, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 241, Short.MAX_VALUE)
                        .addComponent(btnImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnSiguiente, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(184, 184, 184)
                        .addComponent(btnMinimizar)
                        .addGap(6, 6, 6)
                        .addComponent(btnCerrar))
                    .addComponent(jLayeredPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 673, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(btnMinimizar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnCerrar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 452, Short.MAX_VALUE)
                .addGap(30, 30, 30)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnSiguiente, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnAnterior, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnCerrarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMouseEntered

        btnCerrar.setIcon(new ImageIcon(getClass().getResource("/imagenes/cerrar-activo.png")));     }//GEN-LAST:event_btnCerrarMouseEntered

    private void btnCerrarMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMouseExited

        btnCerrar.setIcon(new ImageIcon(getClass().getResource("/imagenes/cerrar-normal.png")));     }//GEN-LAST:event_btnCerrarMouseExited

    private void btnCerrarMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMousePressed

        btnCerrar.setIcon(new ImageIcon(getClass().getResource("/imagenes/cerrar-click.png")));     }//GEN-LAST:event_btnCerrarMousePressed

    private void btnCerrarMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMouseReleased

        btnCerrar.setIcon(new ImageIcon(getClass().getResource("/imagenes/cerrar-normal.png")));     }//GEN-LAST:event_btnCerrarMouseReleased

    private void btnMinimizarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnMinimizarMouseEntered

        btnMinimizar.setIcon(new ImageIcon(getClass().getResource("/imagenes/minimizar-activo.png")));     }//GEN-LAST:event_btnMinimizarMouseEntered

    private void btnMinimizarMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnMinimizarMouseExited

        btnMinimizar.setIcon(new ImageIcon(getClass().getResource("/imagenes/minimizar-normal.png")));     }//GEN-LAST:event_btnMinimizarMouseExited

    private void btnMinimizarMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnMinimizarMousePressed

        btnMinimizar.setIcon(new ImageIcon(getClass().getResource("/imagenes/minimizar-click.png")));     }//GEN-LAST:event_btnMinimizarMousePressed

    private void btnMinimizarMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnMinimizarMouseReleased

        btnMinimizar.setIcon(new ImageIcon(getClass().getResource("/imagenes/minimizar-normal.png")));     }//GEN-LAST:event_btnMinimizarMouseReleased

    private void btnMinimizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMinimizarActionPerformed

        this.setExtendedState(Principal.ICONIFIED);     }//GEN-LAST:event_btnMinimizarActionPerformed

    private void btnCerrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCerrarActionPerformed
        this.dispose();
    }//GEN-LAST:event_btnCerrarActionPerformed

    private void btnAnteriorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAnteriorActionPerformed
        if (rbtnAdicciones.isSelected()) {
            if (contador == 1) {
                contador--;
                jLayeredPane1.moveToFront(pnl1A);
                pnl1V.setVisible(false);
                pnl2V.setVisible(false);
                pnl3V.setVisible(false);
                pnl1A.setVisible(true);
                pnl2A.setVisible(false);
                btnAnterior.setVisible(false);
                btnSiguiente.setIcon(new ImageIcon(getClass().getResource("/imagenes/siguiente.png")));
                btnImprimir.setVisible(false);
            }
        } else {
            if (rbtnViolencia.isSelected()) {
                if (contador == 1) {
                    contador--;
                    jLayeredPane1.moveToFront(pnl1V);
                    pnl1V.setVisible(true);
                    pnl2V.setVisible(false);
                    pnl3V.setVisible(false);
                    pnl1A.setVisible(false);
                    pnl2A.setVisible(false);
                    btnAnterior.setVisible(false);
                } else {
                    if (contador == 2) {
                        contador--;
                        jLayeredPane1.moveToFront(pnl2V);
                        pnl1V.setVisible(false);
                        pnl2V.setVisible(true);
                        pnl3V.setVisible(false);
                        pnl1A.setVisible(false);
                        pnl2A.setVisible(false);
                        btnSiguiente.setIcon(new ImageIcon(getClass().getResource("/imagenes/siguiente.png")));
                        btnImprimir.setVisible(false);
                    }
                }
            }
        }
    }//GEN-LAST:event_btnAnteriorActionPerformed

    private void rbtnViolenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtnViolenciaActionPerformed
        jLayeredPane1.moveToFront(pnl1V);
        pnl1V.setVisible(true);
        pnl2V.setVisible(false);
        pnl3V.setVisible(false);
        pnl1A.setVisible(false);
        pnl2A.setVisible(false);
        contador = 0;
        btnSiguiente.setIcon(new ImageIcon(getClass().getResource("/imagenes/siguiente.png")));
        btnAnterior.setVisible(false);
        btnImprimir.setVisible(false);

        txtApellidoHijo.setText("");
        txtApellidoMadre.setText("");
        txtApellidoPadre.setText("");
        txtAsesoria.setText("");
        txtBeneficiarioMadre.setText("");
        txtBeneficiarioPadre.setText("");
        txtComisaria.setText("");
        txtCopnaf.setText("");
        txtCual.setText("");
        txtDniMadre.setText("");
        txtDniPadre.setText("");
        txtDonde.setText("");
        txtDptoMadre.setText("");
        txtDptoPadre.setText("");
        txtEdadHijo.setValue(1);
        txtEdadInicio.setValue(1);
        txtEdadMadre.setValue(1);
        txtEdadPadre.setValue(1);
        txtEntrevistadoA.setText("");
        txtEntrevistadoV.setText("");
        txtEquipo102A.setText("");
        txtEquipo102V.setText("");
        txtIntRealizadaV.setText("");
        txtIntervencionA.setText("");
        txtJuzgado.setText("");
        txtNombreHijo.setText("");
        txtNombreMadre.setText("");
        txtNombreNinio.setText("");
        txtNombreNinio3.setText("");
        txtNombrePadre.setText("");
        txtNroCalleMadre.setText("");
        txtNroCallePadre.setText("");
        txtNroCaso.setText("");
        txtNroCaso3.setText("");
        txtObraSocial.setText("");
        txtObraSocialMadre.setText("");
        txtObraSocialPadre.setText("");
        txtOtraAbuso.setText("");
        txtOtraInicio.setText("");
        txtPisoMadre.setText("");
        txtPisoPadre.setText("");
        txtTelefonoMadre.setText("");
        txtTelefonoPadre.setText("");
        txtTrabajo.setText("");
        txtTrabajoMadre.setText("");
        txtTrabajoPadre.setText("");
        txtZonaServ.setText("");

        buttonGroup2.clearSelection();
        buttonGroup3.clearSelection();
        buttonGroup4.clearSelection();
        buttonGroup5.clearSelection();
        buttonGroup6.clearSelection();

        cboAsesoria.setSelectedIndex(-1);
        cboCalleMadre.setSelectedIndex(-1);
        cboCallePadre.setSelectedIndex(-1);
        cboComposicionFamiliar.setSelectedIndex(-1);
        cboConoceServ.setSelectedIndex(-1);
        cboEstadoCivilMadre.setSelectedIndex(-1);
        cboEstadoCivilPadre.setSelectedIndex(-1);
        cboFamDiscapacitado.setSelectedIndex(-1);
        cboIntervinoCop.setSelectedIndex(-1);
        cboIntervinoJuz.setSelectedIndex(-1);
        cboIntervinoServ.setSelectedIndex(-1);
        cboPrimario.setSelectedIndex(-1);
        cboSecundario.setSelectedIndex(-1);
        cboSustAbuso.setSelectedIndex(-1);
        cboSustInicio.setSelectedIndex(-1);
        cboTrabajo.setSelectedIndex(-1);
        cboTrabajoMadre.setSelectedIndex(-1);
        cboTrabajoPadre.setSelectedIndex(-1);
        cboViolencia.setSelectedIndex(-1);
        cboEscolaridad.setSelectedIndex(-1);

        dtpFechaA.setDate(null);
        dtpFechaIngreso.setDate(null);
        dtpFechaIngreso3.setDate(null);
        dtpFechaV.setDate(null);
    }//GEN-LAST:event_rbtnViolenciaActionPerformed

    private void rbtnAdiccionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtnAdiccionesActionPerformed
        jLayeredPane1.moveToFront(pnl1A);
        pnl1V.setVisible(false);
        pnl2V.setVisible(false);
        pnl3V.setVisible(false);
        pnl1A.setVisible(true);
        pnl2A.setVisible(false);
        contador = 0;
        btnSiguiente.setIcon(new ImageIcon(getClass().getResource("/imagenes/siguiente.png")));
        btnAnterior.setVisible(false);
        btnImprimir.setVisible(false);

        txtApellidoHijo.setText("");
        txtApellidoMadre.setText("");
        txtApellidoPadre.setText("");
        txtAsesoria.setText("");
        txtBeneficiarioMadre.setText("");
        txtBeneficiarioPadre.setText("");
        txtComisaria.setText("");
        txtCopnaf.setText("");
        txtCual.setText("");
        txtDniMadre.setText("");
        txtDniPadre.setText("");
        txtDonde.setText("");
        txtDptoMadre.setText("");
        txtDptoPadre.setText("");
        txtEdadHijo.setValue(1);
        txtEdadInicio.setValue(1);
        txtEdadMadre.setValue(1);
        txtEdadPadre.setValue(1);
        txtEntrevistadoA.setText("");
        txtEntrevistadoV.setText("");
        txtEquipo102A.setText("");
        txtEquipo102V.setText("");
        txtIntRealizadaV.setText("");
        txtIntervencionA.setText("");
        txtJuzgado.setText("");
        txtNombreHijo.setText("");
        txtNombreMadre.setText("");
        txtNombreNinio.setText("");
        txtNombreNinio3.setText("");
        txtNombrePadre.setText("");
        txtNroCalleMadre.setText("");
        txtNroCallePadre.setText("");
        txtNroCaso.setText("");
        txtNroCaso3.setText("");
        txtObraSocial.setText("");
        txtObraSocialMadre.setText("");
        txtObraSocialPadre.setText("");
        txtOtraAbuso.setText("");
        txtOtraInicio.setText("");
        txtPisoMadre.setText("");
        txtPisoPadre.setText("");
        txtTelefonoMadre.setText("");
        txtTelefonoPadre.setText("");
        txtTrabajo.setText("");
        txtTrabajoMadre.setText("");
        txtTrabajoPadre.setText("");
        txtZonaServ.setText("");

        buttonGroup2.clearSelection();
        buttonGroup3.clearSelection();
        buttonGroup4.clearSelection();
        buttonGroup5.clearSelection();
        buttonGroup6.clearSelection();

        cboAsesoria.setSelectedIndex(-1);
        cboCalleMadre.setSelectedIndex(-1);
        cboCallePadre.setSelectedIndex(-1);
        cboComposicionFamiliar.setSelectedIndex(-1);
        cboConoceServ.setSelectedIndex(-1);
        cboEstadoCivilMadre.setSelectedIndex(-1);
        cboEstadoCivilPadre.setSelectedIndex(-1);
        cboFamDiscapacitado.setSelectedIndex(-1);
        cboIntervinoCop.setSelectedIndex(-1);
        cboIntervinoJuz.setSelectedIndex(-1);
        cboIntervinoServ.setSelectedIndex(-1);
        cboPrimario.setSelectedIndex(-1);
        cboSecundario.setSelectedIndex(-1);
        cboSustAbuso.setSelectedIndex(-1);
        cboSustInicio.setSelectedIndex(-1);
        cboTrabajo.setSelectedIndex(-1);
        cboTrabajoMadre.setSelectedIndex(-1);
        cboTrabajoPadre.setSelectedIndex(-1);
        cboViolencia.setSelectedIndex(-1);
        cboEscolaridad.setSelectedIndex(-1);

        dtpFechaA.setDate(null);
        dtpFechaIngreso.setDate(null);
        dtpFechaIngreso3.setDate(null);
        dtpFechaV.setDate(null);
    }//GEN-LAST:event_rbtnAdiccionesActionPerformed

    private void btnSiguienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSiguienteActionPerformed
        if (rbtnAdicciones.isSelected()) {
            if (contador == 0) {
                if (((rbtnPrimario.isSelected() && cboPrimario.getSelectedIndex() != -1) || (rbtnSecundario.isSelected() && cboSecundario.getSelectedIndex() != -1) || rbtnUniversitario.isSelected()) && (rbtnSeparado1.isSelected() || rbtnCasado1.isSelected() || rbtnHijos1.isSelected() || rbtnFamilia1.isSelected()) && cboTrabajo.getSelectedIndex() != -1) {
                    contador++;
                    jLayeredPane1.moveToFront(pnl2A);
                    pnl1V.setVisible(false);
                    pnl2V.setVisible(false);
                    pnl3V.setVisible(false);
                    pnl1A.setVisible(false);
                    pnl2A.setVisible(true);
                    btnAnterior.setVisible(true);
                    btnSiguiente.setIcon(new ImageIcon(getClass().getResource("/imagenes/guardar-usuario.png")));
                    btnImprimir.setVisible(true);
                } else {
                    MensajesInfo p1 = new MensajesInfo('e', "CamposVacios");
                    p1.setLocationRelativeTo(null);
                    p1.setIconImage(icono);
                    p1.setVisible(true);
                    Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
                    AWTUtilities.setWindowShape(p1, shape);
                }
            } else {
                if (contador == 1) {
                    if (cboSustAbuso.getSelectedIndex() != -1 && cboSustInicio.getSelectedIndex() != -1 && (rbtnConsumeNo.isSelected() || rbtnConsumeSi.isSelected()) && (rbtnTratNo.isSelected() || rbtnTratSi.isSelected()) && dtpFechaA.getDate() != null && !txtIntervencionA.getText().equals("")) {
                        if (rbtnSeparado1.isSelected()) {
                            adiccion.setComposicionFamiliar(TipoComposicionFamiliar.SEPARADO);
                        } else {
                            if (rbtnCasado1.isSelected()) {
                                adiccion.setComposicionFamiliar(TipoComposicionFamiliar.CASADO_CONCUBINATO);
                            } else {
                                if (rbtnFamilia1.isSelected()) {
                                    adiccion.setComposicionFamiliar(TipoComposicionFamiliar.FAMILIA_DE_ORIGEN);
                                } else {
                                    if (rbtnHijos1.isSelected()) {
                                        adiccion.setComposicionFamiliar(TipoComposicionFamiliar.HIJOS);
                                    }
                                }
                            }
                        }
                        if (rbtnConsumeSi.isSelected()) {
                            adiccion.setConsumeAlcohol(true);
                        } else {
                            if (rbtnConsumeNo.isSelected()) {
                                adiccion.setConsumeAlcohol(false);
                            }
                        }
                        adiccion.setCualTratamiento(txtCual.getText());
                        adiccion.setDondeTratamiento(txtDonde.getText());
                        adiccion.setEdadInicio(Integer.valueOf(txtEdadInicio.getValue().toString()));
                        adiccion.setEntrevistado(txtEntrevistadoA.getText());
                        adiccion.setEquipo102(txtEquipo102A.getText());
                        adiccion.setFecha(dtpFechaA.getDate());
                        adiccion.setIntervencionRealizada(txtIntervencionA.getText());
                        adiccion.setLugarDeTrabajo(txtTrabajo.getText());
                        adiccion.setObraSocial(txtObraSocial.getText());
                        adiccion.setOtraSustanciaAbuso(txtOtraAbuso.getText());
                        adiccion.setOtraSustanciaInicio(txtOtraInicio.getText());
                        if (rbtnPrimario.isSelected()) {
                            adiccion.setPrimaria(true);
                            adiccion.setPrimariaCom((TipoCompleto) cboPrimario.getSelectedItem());
                            adiccion.setSecundaria(false);
                            adiccion.setUniversidad(false);
                        }
                        if (rbtnSecundario.isSelected()) {
                            adiccion.setPrimaria(false);
                            adiccion.setSecundaria(true);
                            adiccion.setSecundariaCom((TipoCompleto) cboPrimario.getSelectedItem());
                            adiccion.setUniversidad(false);
                        }
                        if (rbtnUniversitario.isSelected()) {
                            adiccion.setPrimaria(false);
                            adiccion.setSecundaria(false);
                            adiccion.setUniversidad(true);
                        }
                        adiccion.setSituacionLaboral((TipoSituacionLaboral) cboTrabajo.getSelectedItem());
                        adiccion.setSustanciaAbuso((TipoSustancia) cboSustAbuso.getSelectedItem());
                        adiccion.setSustanciaInicio((TipoSustancia) cboSustInicio.getSelectedItem());
                        if (rbtnTratSi.isSelected()) {
                            adiccion.setTratamientoAnterior(true);
                        } else {
                            if (rbtnTratNo.isSelected()) {
                                adiccion.setTratamientoAnterior(false);
                            }
                        }

                        ControladorPrincipal.getInstance().guardar(adiccion);

                        MensajesInfo p1 = new MensajesInfo('n', "GuardarExito");
                        p1.setLocationRelativeTo(null);
                        p1.setIconImage(icono);
                        p1.setVisible(true);
                        Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
                        AWTUtilities.setWindowShape(p1, shape);

                        this.dispose();
                    } else {
                        MensajesInfo p1 = new MensajesInfo('e', "CamposVacios");
                        p1.setLocationRelativeTo(null);
                        p1.setIconImage(icono);
                        p1.setVisible(true);
                        Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
                        AWTUtilities.setWindowShape(p1, shape);
                    }
                }
            }
        } else {
            if (rbtnViolencia.isSelected()) {
                if (contador == 0) {
                    if (cboComposicionFamiliar.getSelectedIndex() != -1 && cboViolencia.getSelectedIndex() != -1 && cboFamDiscapacitado.getSelectedIndex() != -1) {
                        if (txtDniPadre.getText().equals("")) {
                            txtDniPadre.setText("0");
                        }
                        if (txtPisoPadre.getText().equals("")) {
                            txtPisoPadre.setText("0");
                        }
                        if (txtNroCallePadre.getText().equals("")) {
                            txtNroCallePadre.setText("0");
                        }
                        if (isNumeric(txtDniPadre.getText()) && isNumeric(txtPisoPadre.getText()) && isNumeric(txtNroCallePadre.getText())) {
                            contador++;
                            jLayeredPane1.moveToFront(pnl2V);
                            pnl1V.setVisible(false);
                            pnl2V.setVisible(true);
                            pnl3V.setVisible(false);
                            pnl1A.setVisible(false);
                            pnl2A.setVisible(false);
                            btnAnterior.setVisible(true);
                        } else {
                            MensajesInfo p1 = new MensajesInfo('e', "ErrorNumero");
                            p1.setLocationRelativeTo(null);
                            p1.setIconImage(icono);
                            p1.setVisible(true);
                            Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
                            AWTUtilities.setWindowShape(p1, shape);
                        }
                    } else {
                        MensajesInfo p1 = new MensajesInfo('e', "CamposVacios");
                        p1.setLocationRelativeTo(null);
                        p1.setIconImage(icono);
                        p1.setVisible(true);
                        Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
                        AWTUtilities.setWindowShape(p1, shape);
                    }
                } else {
                    if (contador == 1) {
                        if (txtDniMadre.getText().equals("")) {
                            txtDniMadre.setText("0");
                        }
                        if (txtPisoMadre.getText().equals("")) {
                            txtPisoMadre.setText("0");
                        }
                        if (txtNroCalleMadre.getText().equals("")) {
                            txtNroCalleMadre.setText("0");
                        }
                        if (isNumeric(txtDniMadre.getText()) && isNumeric(txtPisoMadre.getText()) && isNumeric(txtNroCalleMadre.getText())) {
                            contador++;
                            jLayeredPane1.moveToFront(pnl3V);
                            pnl1V.setVisible(false);
                            pnl2V.setVisible(false);
                            pnl3V.setVisible(true);
                            pnl1A.setVisible(false);
                            pnl2A.setVisible(false);
                            btnAnterior.setVisible(true);
                            btnSiguiente.setIcon(new ImageIcon(getClass().getResource("/imagenes/guardar-usuario.png")));
                            btnImprimir.setVisible(true);
                        } else {
                            MensajesInfo p1 = new MensajesInfo('e', "ErrorNumero");
                            p1.setLocationRelativeTo(null);
                            p1.setIconImage(icono);
                            p1.setVisible(true);
                            Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
                            AWTUtilities.setWindowShape(p1, shape);
                        }
                    } else {
                        if (contador == 2) {
                            if (dtpFechaV.getDate() != null && !txtIntRealizadaV.getText().equals("")) {
                                Adulto madre = null;
                                if (!txtNombreMadre.getText().equals("") && !txtApellidoMadre.getText().equals("") && !txtDniMadre.getText().equals("")) {
                                    //Direccion Madre
                                    Direccion aux = ControladorPrincipal.getInstance().getControladorPersonas().existe_direccion((Calle) cboCalleMadre.getSelectedItem(), Integer.valueOf(txtNroCalleMadre.getText()), Integer.valueOf(txtPisoMadre.getText()), txtDptoMadre.getText());
                                    Direccion direccionMadre = null;
                                    if (aux == null) {
                                        direccionMadre = new Direccion();
                                        direccionMadre.setCalle((Calle) cboCalleMadre.getSelectedItem());
                                        direccionMadre.setDepartamento(txtDptoMadre.getText());
                                        direccionMadre.setNuemero(Integer.valueOf(txtNroCalleMadre.getText()));
                                        direccionMadre.setPiso(Integer.valueOf(txtPisoMadre.getText()));
                                        ControladorPrincipal.getInstance().guardar(direccionMadre);
                                    } else {
                                        direccionMadre = aux;
                                    }

                                    //Madre
                                    Adulto auxMadre = ControladorPrincipal.getInstance().getControladorPersonas().existeAdulto(Long.parseLong(txtDniMadre.getText()));
                                    if (auxMadre == null) {
                                        madre = new Adulto();
                                    } else {
                                        madre = auxMadre;
                                    }
                                    madre.setApellido(txtApellidoMadre.getText());
                                    madre.setBeneficiario(txtBeneficiarioMadre.getText());
                                    madre.setEdad(Integer.parseInt(txtEdadMadre.getValue().toString()));
                                    madre.setDireccion(direccionMadre);
                                    madre.setDni(Long.parseLong(txtDniMadre.getText()));
                                    madre.setEstadoCivil((TipoEstadoCivil) cboEstadoCivilMadre.getSelectedItem());
                                    madre.setLugarDeTrabajo(txtTrabajoMadre.getText());
                                    if (madre.getMadreDe() == null) {
                                        madre.setMadreDe(new ArrayList<Nino_Adolescente>());
                                    }
                                    if (!madre.getMadreDe().contains(violencia.getCaso().getNino_adolescente())) {
                                        madre.getMadreDe().add(violencia.getCaso().getNino_adolescente());
                                    }

                                    madre.setNombre(txtNombreMadre.getText());
                                    madre.setObraSocial(txtObraSocialMadre.getText());
                                    madre.setSituacionLaboral((TipoSituacionLaboral) cboTrabajoMadre.getSelectedItem());
                                    madre.setTelefono(txtTelefonoMadre.getText());
                                    ControladorPrincipal.getInstance().guardar(madre);

                                    //Asignar madre a direccion
                                    if (direccionMadre.getPersonas() == null) {
                                        direccionMadre.setPersonas(new ArrayList<Persona>());
                                    }
                                    if (!direccionMadre.getPersonas().contains(madre)) {
                                        direccionMadre.getPersonas().add(madre);
                                    }
                                    ControladorPrincipal.getInstance().guardar(direccionMadre);
                                }
                                //Direccion Padre

                                Adulto padre = null;
                                if (!txtNombrePadre.getText().equals("") && !txtApellidoPadre.getText().equals("") && !txtDniPadre.getText().equals("")) {
                                    Direccion aux = ControladorPrincipal.getInstance().getControladorPersonas().existe_direccion((Calle) cboCallePadre.getSelectedItem(), Integer.valueOf(txtNroCallePadre.getText()), Integer.valueOf(txtPisoPadre.getText()), txtDptoPadre.getText());
                                    Direccion direccionPadre = null;
                                    if (aux == null) {
                                        direccionPadre = new Direccion();
                                        direccionPadre.setCalle((Calle) cboCallePadre.getSelectedItem());
                                        direccionPadre.setDepartamento(txtDptoPadre.getText());
                                        direccionPadre.setNuemero(Integer.valueOf(txtNroCallePadre.getText()));
                                        direccionPadre.setPiso(Integer.valueOf(txtPisoPadre.getText()));
                                        ControladorPrincipal.getInstance().guardar(direccionPadre);
                                    } else {
                                        direccionPadre = aux;
                                    }

                                    //Padre
                                    Adulto auxPadre = ControladorPrincipal.getInstance().getControladorPersonas().existeAdulto(Long.parseLong(txtDniPadre.getText()));
                                    if (auxPadre == null) {
                                        padre = new Adulto();
                                    } else {
                                        padre = auxPadre;
                                    }
                                    padre.setApellido(txtApellidoPadre.getText());
                                    padre.setBeneficiario(txtBeneficiarioPadre.getText());
                                    padre.setEdad(Integer.parseInt(txtEdadPadre.getValue().toString()));
                                    padre.setDireccion(direccionPadre);
                                    padre.setDni(Long.parseLong(txtDniPadre.getText()));
                                    padre.setEstadoCivil((TipoEstadoCivil) cboEstadoCivilPadre.getSelectedItem());
                                    padre.setLugarDeTrabajo(txtTrabajoPadre.getText());
                                    if (padre.getPadreDe() == null) {
                                        padre.setPadreDe(new ArrayList<Nino_Adolescente>());
                                    }
                                    if (!padre.getPadreDe().contains(violencia.getCaso().getNino_adolescente())) {
                                        padre.getPadreDe().add(violencia.getCaso().getNino_adolescente());
                                    }

                                    padre.setNombre(txtNombrePadre.getText());
                                    padre.setObraSocial(txtObraSocialPadre.getText());
                                    padre.setSituacionLaboral((TipoSituacionLaboral) cboTrabajoPadre.getSelectedItem());
                                    padre.setTelefono(txtTelefonoPadre.getText());
                                    ControladorPrincipal.getInstance().guardar(padre);

                                    //Asignar padre a direccion
                                    if (direccionPadre.getPersonas() == null) {
                                        direccionPadre.setPersonas(new ArrayList<Persona>());
                                    }
                                    if (!direccionPadre.getPersonas().contains(padre)) {
                                        direccionPadre.getPersonas().add(padre);
                                    }
                                    ControladorPrincipal.getInstance().guardar(direccionPadre);
                                }
                                //Padres del niño del caso
                                Nino_Adolescente ninio = violencia.getCaso().getNino_adolescente();
                                ninio.setPadre(padre);
                                ninio.setMadre(madre);
                                ControladorPrincipal.getInstance().getControladorPersonas().actualizar(ninio);

                                //Hijos
                                DefaultTableModel modelo = (DefaultTableModel) tlbHijos.getModel();
                                ArrayList<Hijo> hijos = new ArrayList<Hijo>();
                                if (modelo.getRowCount() > 0) {
                                    for (int i = 0; i < modelo.getRowCount(); i++) {
                                        Hijo hijo = (Hijo) modelo.getValueAt(i, 0);
                                        hijo.setPadre(padre);
                                        hijo.setMadre(madre);
                                        if (!listaHijos.contains(hijo)) {
                                            ControladorPrincipal.getInstance().guardar(hijo);
                                        } else {
                                            listaHijos.remove(hijo);
                                        }
                                        hijos.add(hijo);
                                    }
                                }

                                //Asignar hijos a los padres
//                                if (madre != null) {
//                                    if (madre.getMadreDeHijo() == null) {
//                                        madre.setMadreDeHijo(new ArrayList<Hijo>());
//                                    }
//                                    madre.getMadreDeHijo().addAll(hijos);
//                                    madre.getMadreDeHijo().removeAll(listaHijos);
//                                    ControladorPrincipal.getInstance().guardar(madre);
//                                }
//                                if (padre != null) {
//                                    if (padre.getPadreDeHijo() == null) {
//                                        padre.setPadreDeHijo(new ArrayList<Hijo>());
//                                    }
//                                    padre.getPadreDeHijo().addAll(hijos);
//                                    padre.getMadreDeHijo().removeAll(listaHijos);
//                                    ControladorPrincipal.getInstance().guardar(padre);
//                                }

                                //Comisaria
                                Comisaria auxCom = ControladorPrincipal.getInstance().getControladorCasos().existeComisaria(txtComisaria.getText());
                                Comisaria comisaria = null;
                                if (auxCom == null) {
                                    comisaria = new Comisaria();
                                    comisaria.setNombre(txtComisaria.getText());
                                    ControladorPrincipal.getInstance().guardar(comisaria);
                                } else {
                                    comisaria = auxCom;
                                }


                                //Asesoria
                                Asesoria auxAse = ControladorPrincipal.getInstance().getControladorCasos().existeAsesoria(txtAsesoria.getText());
                                Asesoria asesoria = null;
                                if (auxAse == null) {
                                    asesoria = new Asesoria();
                                    asesoria.setNombre(txtAsesoria.getText());
                                    ControladorPrincipal.getInstance().guardar(asesoria);
                                } else {
                                    asesoria = auxAse;
                                }
                                InformacionAsesoria infoAse = violencia.getInformacionAsesoria();
                                infoAse.setAsesoria(asesoria);
                                infoAse.setTipoAsesoria((TipoAsesoria) cboAsesoria.getSelectedItem());
                                ControladorPrincipal.getInstance().guardar(infoAse);

                                //Copnaf
                                Copnaf auxCop = ControladorPrincipal.getInstance().getControladorCasos().existeCopnaf(txtCopnaf.getText());
                                Copnaf copnaf = null;
                                if (auxCop == null) {
                                    copnaf = new Copnaf();
                                    copnaf.setNombre(txtCopnaf.getText());
                                    ControladorPrincipal.getInstance().guardar(copnaf);
                                } else {
                                    copnaf = auxCop;
                                }
                                InformacionCopnaf infoCop = violencia.getInformacionCopnaf();
                                infoCop.setCopnaf(copnaf);
                                if (cboIntervinoCop.getSelectedItem().toString().equals("SI")) {
                                    infoCop.setHaIntervenido(true);
                                } else {
                                    if (cboIntervinoCop.getSelectedItem().toString().equals("NO")) {
                                        infoCop.setHaIntervenido(false);
                                    }
                                }
                                ControladorPrincipal.getInstance().guardar(infoCop);

                                //Juzgado
                                JuzgadoDeFamilia auxJuz = ControladorPrincipal.getInstance().getControladorCasos().existeJuzgado(txtJuzgado.getText());
                                JuzgadoDeFamilia juzgado = null;
                                if (auxJuz == null) {
                                    juzgado = new JuzgadoDeFamilia();
                                    juzgado.setNombre(txtJuzgado.getText());
                                    ControladorPrincipal.getInstance().guardar(juzgado);
                                } else {
                                    juzgado = auxJuz;
                                }
                                InformacionJuzgado infoJuz = violencia.getInformacionJuzgado();
                                if (cboIntervinoJuz.getSelectedItem().toString().equals("SI")) {
                                    infoJuz.setHaIntervenido(true);
                                } else {
                                    if (cboIntervinoJuz.getSelectedItem().toString().equals("NO")) {
                                        infoJuz.setHaIntervenido(false);
                                    }
                                }
                                infoJuz.setJuzgadoDeFamilia(juzgado);
                                ControladorPrincipal.getInstance().guardar(infoJuz);

                                //Proteccion derecho
                                ServicioProteccionDerecho auxSer = ControladorPrincipal.getInstance().getControladorCasos().existeServicioDerecho("Servicio");
                                ServicioProteccionDerecho servicio = null;
                                if (auxSer == null) {
                                    servicio = new ServicioProteccionDerecho();
                                    servicio.setNombre("Servicio");
                                    ControladorPrincipal.getInstance().guardar(servicio);
                                } else {
                                    servicio = auxSer;
                                }
                                InformacionServicioProteccionDerecho infoSer = violencia.getInformacionServicioProteccionDerecho();
                                infoSer.setServicioProteccionDerecho(servicio);
                                if (cboConoceServ.getSelectedItem().toString().equals("SI")) {
                                    infoSer.setLoConoce(true);
                                } else {
                                    if (cboConoceServ.getSelectedItem().toString().equals("NO")) {
                                        infoSer.setLoConoce(false);
                                    }
                                }
                                if (cboIntervinoServ.getSelectedItem().toString().equals("SI")) {
                                    infoSer.setHaIntervenido(true);
                                } else {
                                    if (cboIntervinoServ.getSelectedItem().toString().equals("NO")) {
                                        infoSer.setHaIntervenido(false);
                                    }
                                }
                                infoSer.setZona(txtZonaServ.getText());
                                ControladorPrincipal.getInstance().guardar(infoSer);

                                //Resto de valores de la intervencion
                                //Intervencion
                                violencia.setComposicionFamiliar((TipoComposicionFamiliar) cboComposicionFamiliar.getSelectedItem());
                                violencia.setEntrevistado(txtEntrevistadoV.getText());
                                violencia.setEquipo102(txtEquipo102V.getText());
                                if (cboFamDiscapacitado.getSelectedItem().toString().equals("SI")) {
                                    violencia.setFamiliaresDiscapacitados(true);
                                } else {
                                    if (cboFamDiscapacitado.getSelectedItem().toString().equals("NO")) {
                                        violencia.setFamiliaresDiscapacitados(false);
                                    }
                                }
                                violencia.setFecha(dtpFechaV.getDate());
                                violencia.setIntervencionRealizada(txtIntRealizadaV.getText());
                                if (cboViolencia.getSelectedItem().toString().equals("SI")) {
                                    violencia.setViolenciaConyugal(true);
                                } else {
                                    if (cboViolencia.getSelectedItem().toString().equals("NO")) {
                                        violencia.setViolenciaConyugal(false);
                                    }
                                }
                                violencia.setComisaria(comisaria);
                                violencia.setInformacionAsesoria(infoAse);
                                violencia.setInformacionCopnaf(infoCop);
                                violencia.setInformacionJuzgado(infoJuz);
                                violencia.setInformacionServicioProteccionDerecho(infoSer);
                                violencia.setMadre(madre);
                                violencia.setPadre(padre);
                                ControladorPrincipal.getInstance().guardar(violencia);

                                //Otros datos
                                if (madre != null) {
                                    if (madre.getMadreIntervencion() == null) {
                                        madre.setMadreIntervencion(new ArrayList<IntervencionComun>());
                                    }
                                    if (!madre.getMadreIntervencion().contains(violencia)) {
                                        madre.getMadreIntervencion().add(violencia);
                                    }
                                    ControladorPrincipal.getInstance().guardar(madre);
                                }

                                if (padre != null) {
                                    if (padre.getPadreIntervencion() == null) {
                                        padre.setPadreIntervencion(new ArrayList<IntervencionComun>());
                                    }
                                    if (!padre.getMadreIntervencion().contains(violencia)) {
                                        padre.getPadreIntervencion().add(violencia);
                                    }
                                    ControladorPrincipal.getInstance().guardar(padre);
                                }

                                if (comisaria.getIntervenciones() == null) {
                                    comisaria.setIntervenciones(new ArrayList<IntervencionComun>());
                                }
                                if (!comisaria.getIntervenciones().contains(violencia)) {
                                    comisaria.getIntervenciones().add(violencia);
                                    ControladorPrincipal.getInstance().guardar(comisaria);
                                }
                                
                                infoAse.setIntervencion(violencia);
                                ControladorPrincipal.getInstance().getControladorCasos().actualizar(infoAse);

                                infoCop.setIntervencion(violencia);
                                ControladorPrincipal.getInstance().getControladorCasos().actualizar(infoCop);

                                infoJuz.setIntervencion(violencia);
                                ControladorPrincipal.getInstance().getControladorCasos().actualizar(infoJuz);

                                infoSer.setIntervencion(violencia);
                                ControladorPrincipal.getInstance().getControladorCasos().actualizar(infoSer);

                                MensajesInfo p1 = new MensajesInfo('n', "GuardarExito");
                                p1.setLocationRelativeTo(null);
                                p1.setIconImage(icono);
                                p1.setVisible(true);
                                Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
                                AWTUtilities.setWindowShape(p1, shape);

                                this.dispose();
                            } else {
                                MensajesInfo p1 = new MensajesInfo('e', "CamposVacios");
                                p1.setLocationRelativeTo(null);
                                p1.setIconImage(icono);
                                p1.setVisible(true);
                                Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
                                AWTUtilities.setWindowShape(p1, shape);
                            }
                        }
                    }
                }
            }
        }
    }//GEN-LAST:event_btnSiguienteActionPerformed

    private void rbtnPrimarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtnPrimarioActionPerformed
        cboPrimario.setEnabled(true);
        cboSecundario.setEnabled(false);
        cboPrimario.setSelectedIndex(-1);
        cboSecundario.setSelectedIndex(-1);
    }//GEN-LAST:event_rbtnPrimarioActionPerformed

    private void rbtnSecundarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtnSecundarioActionPerformed
        cboPrimario.setEnabled(false);
        cboSecundario.setEnabled(true);
        cboPrimario.setSelectedIndex(-1);
        cboSecundario.setSelectedIndex(-1);
    }//GEN-LAST:event_rbtnSecundarioActionPerformed

    private void rbtnUniversitarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtnUniversitarioActionPerformed
        cboPrimario.setEnabled(false);
        cboSecundario.setEnabled(false);
        cboPrimario.setSelectedIndex(-1);
        cboSecundario.setSelectedIndex(-1);
    }//GEN-LAST:event_rbtnUniversitarioActionPerformed

    private void rbtnTratSiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtnTratSiActionPerformed
        txtCual.setEnabled(true);
        txtDonde.setEnabled(true);
    }//GEN-LAST:event_rbtnTratSiActionPerformed

    private void rbtnTratNoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtnTratNoActionPerformed
        txtCual.setEnabled(false);
        txtDonde.setEnabled(false);
    }//GEN-LAST:event_rbtnTratNoActionPerformed

    private void cboTrabajoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cboTrabajoActionPerformed
        if (cboTrabajo.getSelectedItem() == TipoSituacionLaboral.OCUPADO) {
            txtTrabajo.setEnabled(true);
        } else {
            txtTrabajo.setEnabled(false);
            txtTrabajo.setText("");
        }
    }//GEN-LAST:event_cboTrabajoActionPerformed

    private void cboSustInicioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cboSustInicioActionPerformed
        if (cboSustInicio.getSelectedItem() == TipoSustancia.OTRAS) {
            txtOtraInicio.setEnabled(true);
        } else {
            txtOtraInicio.setEnabled(false);
            txtOtraInicio.setText("");
        }
    }//GEN-LAST:event_cboSustInicioActionPerformed

    private void cboSustAbusoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cboSustAbusoActionPerformed
        if (cboSustAbuso.getSelectedItem() == TipoSustancia.OTRAS) {
            txtOtraAbuso.setEnabled(true);
        } else {
            txtOtraAbuso.setEnabled(false);
            txtOtraAbuso.setText("");
        }
    }//GEN-LAST:event_cboSustAbusoActionPerformed

    private void cboTrabajoPadreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cboTrabajoPadreActionPerformed
        if (cboTrabajoPadre.getSelectedItem() == TipoSituacionLaboral.OCUPADO) {
            txtTrabajoPadre.setEnabled(true);
        } else {
            txtTrabajoPadre.setEnabled(false);
            txtTrabajoPadre.setText("");
        }
    }//GEN-LAST:event_cboTrabajoPadreActionPerformed

    private void btnAgregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarActionPerformed
        DefaultTableModel modelo = (DefaultTableModel) tlbHijos.getModel();
        if (!txtNombreHijo.getText().equals("") && !txtApellidoHijo.getText().equals("") && txtEdadHijo.getValue() != null) {
            Hijo hijo = new Hijo();
            hijo.setNombre(txtNombreHijo.getText());
            hijo.setApellido(txtApellidoHijo.getText());
            hijo.setEdad(Integer.parseInt(txtEdadHijo.getValue().toString()));
            hijo.setEscolaridad((TipoEscolaridad) cboEscolaridad.getSelectedItem());

            Object[] obj = new Object[3];
            obj[0] = hijo;
            obj[1] = hijo.getEdad();
            obj[2] = hijo.getEscolaridad().toString();
            modelo.addRow(obj);

            txtNombreHijo.setText("");
            txtApellidoHijo.setText("");
            txtEdadHijo.setValue(1);
            cboEscolaridad.setSelectedIndex(-1);
        } else {
            MensajesInfo p1 = new MensajesInfo('e', "CamposVacios");
            p1.setLocationRelativeTo(null);
            p1.setIconImage(icono);
            p1.setVisible(true);
            Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
            AWTUtilities.setWindowShape(p1, shape);
        }
    }//GEN-LAST:event_btnAgregarActionPerformed

    private void btnAgregar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregar1ActionPerformed
        if (tlbHijos.getSelectedRow() != -1) {
            DefaultTableModel modelo = (DefaultTableModel) tlbHijos.getModel();
            modelo.removeRow(tlbHijos.getSelectedRow());
        } else {
            MensajesInfo p1 = new MensajesInfo('e', "Seleccionar");
            p1.setLocationRelativeTo(null);
            p1.setIconImage(icono);
            p1.setVisible(true);
            Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
            AWTUtilities.setWindowShape(p1, shape);
        }
    }//GEN-LAST:event_btnAgregar1ActionPerformed

    private void cboTrabajoMadreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cboTrabajoMadreActionPerformed
        if (cboTrabajoMadre.getSelectedItem() == TipoSituacionLaboral.OCUPADO) {
            txtTrabajoMadre.setEnabled(true);
        } else {
            txtTrabajoMadre.setEnabled(false);
            txtTrabajoMadre.setText("");
        }
    }//GEN-LAST:event_cboTrabajoMadreActionPerformed

    private void btnImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirActionPerformed
        if (rbtnAdicciones.isSelected()) {
            if (cboSustAbuso.getSelectedIndex() != -1 && cboSustInicio.getSelectedIndex() != -1 && (rbtnConsumeNo.isSelected() || rbtnConsumeSi.isSelected()) && (rbtnTratNo.isSelected() || rbtnTratSi.isSelected()) && dtpFechaA.getDate() != null && !txtIntervencionA.getText().equals("")) {
                PrinterJob job = PrinterJob.getPrinterJob();
                Paper hoja = new Paper();
                hoja.setImageableArea(0, 0, 595, 841);
                hoja.setSize(595, 841);
                job.setPrintable(this);
                try {
                    // Diálogo para elegir el formato de impresión
                    PageFormat pageFormat = new PageFormat();
                    pageFormat.setPaper(hoja);
                    //pageFormat = job.pageDialog(pageFormat);
                    if (job.printDialog()) {
                        job.print();
                    }
                } catch (Exception e) {
                }
            } else {
                MensajesInfo p1 = new MensajesInfo('e', "CamposVacios");
                p1.setLocationRelativeTo(null);
                p1.setIconImage(icono);
                p1.setVisible(true);
                Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
                AWTUtilities.setWindowShape(p1, shape);
            }
        } else {
            if (rbtnViolencia.isSelected()) {
                if (dtpFechaV.getDate() != null && !txtIntRealizadaV.getText().equals("")) {
                    PrinterJob job = PrinterJob.getPrinterJob();
                    Paper hoja = new Paper();
                    hoja.setImageableArea(0, 0, 595, 841);
                    hoja.setSize(595, 841);
                    job.setPrintable(this);
                    try {
                        // Diálogo para elegir el formato de impresión
                        PageFormat pageFormat = new PageFormat();
                        pageFormat.setPaper(hoja);
                        //pageFormat = job.pageDialog(pageFormat);
                        if (job.printDialog()) {
                            job.print();
                        }
                    } catch (Exception e) {
                    }
                } else {
                    MensajesInfo p1 = new MensajesInfo('e', "CamposVacios");
                    p1.setLocationRelativeTo(null);
                    p1.setIconImage(icono);
                    p1.setVisible(true);
                    Shape shape = new RoundRectangle2D.Float(0, 0, p1.getWidth(), p1.getHeight(), 30, 30);
                    AWTUtilities.setWindowShape(p1, shape);
                }
            }
        }
    }//GEN-LAST:event_btnImprimirActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAgregar;
    private javax.swing.JButton btnAgregar1;
    private javax.swing.JButton btnAnterior;
    private javax.swing.JButton btnCerrar;
    private javax.swing.JButton btnImprimir;
    private javax.swing.JButton btnMinimizar;
    private javax.swing.JButton btnSiguiente;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.ButtonGroup buttonGroup3;
    private javax.swing.ButtonGroup buttonGroup4;
    private javax.swing.ButtonGroup buttonGroup5;
    private javax.swing.ButtonGroup buttonGroup6;
    private javax.swing.JComboBox cboAsesoria;
    private javax.swing.JComboBox cboCalleMadre;
    private javax.swing.JComboBox cboCallePadre;
    private javax.swing.JComboBox cboComposicionFamiliar;
    private javax.swing.JComboBox cboConoceServ;
    private javax.swing.JComboBox cboEscolaridad;
    private javax.swing.JComboBox cboEstadoCivilMadre;
    private javax.swing.JComboBox cboEstadoCivilPadre;
    private javax.swing.JComboBox cboFamDiscapacitado;
    private javax.swing.JComboBox cboIntervinoCop;
    private javax.swing.JComboBox cboIntervinoJuz;
    private javax.swing.JComboBox cboIntervinoServ;
    private javax.swing.JComboBox cboPrimario;
    private javax.swing.JComboBox cboSecundario;
    private javax.swing.JComboBox cboSustAbuso;
    private javax.swing.JComboBox cboSustInicio;
    private javax.swing.JComboBox cboTrabajo;
    private javax.swing.JComboBox cboTrabajoMadre;
    private javax.swing.JComboBox cboTrabajoPadre;
    private javax.swing.JComboBox cboViolencia;
    private com.toedter.calendar.JDateChooser dtpFechaA;
    private com.toedter.calendar.JDateChooser dtpFechaIngreso;
    private com.toedter.calendar.JDateChooser dtpFechaIngreso3;
    private com.toedter.calendar.JDateChooser dtpFechaV;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel75;
    private javax.swing.JLabel jLabel76;
    private javax.swing.JLabel jLabel77;
    private javax.swing.JLabel jLabel78;
    private javax.swing.JLabel jLabel79;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel80;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabel93;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPanel pnl1A;
    private javax.swing.JPanel pnl1V;
    private javax.swing.JPanel pnl2A;
    private javax.swing.JPanel pnl2V;
    private javax.swing.JPanel pnl3V;
    private javax.swing.JRadioButton rbtnAdicciones;
    private javax.swing.JRadioButton rbtnCasado1;
    private javax.swing.JRadioButton rbtnConsumeNo;
    private javax.swing.JRadioButton rbtnConsumeSi;
    private javax.swing.JRadioButton rbtnFamilia1;
    private javax.swing.JRadioButton rbtnHijos1;
    private javax.swing.JRadioButton rbtnPrimario;
    private javax.swing.JRadioButton rbtnSecundario;
    private javax.swing.JRadioButton rbtnSeparado1;
    private javax.swing.JRadioButton rbtnTratNo;
    private javax.swing.JRadioButton rbtnTratSi;
    private javax.swing.JRadioButton rbtnUniversitario;
    private javax.swing.JRadioButton rbtnViolencia;
    private javax.swing.JTable tlbHijos;
    private javax.swing.JTextField txtApellidoHijo;
    private javax.swing.JTextField txtApellidoMadre;
    private javax.swing.JTextField txtApellidoPadre;
    private javax.swing.JTextField txtAsesoria;
    private javax.swing.JTextField txtBeneficiarioMadre;
    private javax.swing.JTextField txtBeneficiarioPadre;
    private javax.swing.JTextField txtComisaria;
    private javax.swing.JTextField txtCopnaf;
    private javax.swing.JTextField txtCual;
    private javax.swing.JTextField txtDniMadre;
    private javax.swing.JTextField txtDniPadre;
    private javax.swing.JTextField txtDonde;
    private javax.swing.JTextField txtDptoMadre;
    private javax.swing.JTextField txtDptoPadre;
    private javax.swing.JSpinner txtEdadHijo;
    private javax.swing.JSpinner txtEdadInicio;
    private javax.swing.JSpinner txtEdadMadre;
    private javax.swing.JSpinner txtEdadPadre;
    private javax.swing.JTextField txtEntrevistadoA;
    private javax.swing.JTextField txtEntrevistadoV;
    private javax.swing.JTextField txtEquipo102A;
    private javax.swing.JTextField txtEquipo102V;
    private javax.swing.JTextField txtIntRealizadaV;
    private javax.swing.JTextField txtIntervencionA;
    private javax.swing.JTextField txtJuzgado;
    private javax.swing.JTextField txtNombreHijo;
    private javax.swing.JTextField txtNombreMadre;
    private javax.swing.JTextField txtNombreNinio;
    private javax.swing.JTextField txtNombreNinio3;
    private javax.swing.JTextField txtNombrePadre;
    private javax.swing.JTextField txtNroCalleMadre;
    private javax.swing.JTextField txtNroCallePadre;
    private javax.swing.JTextField txtNroCaso;
    private javax.swing.JTextField txtNroCaso3;
    private javax.swing.JTextField txtObraSocial;
    private javax.swing.JTextField txtObraSocialMadre;
    private javax.swing.JTextField txtObraSocialPadre;
    private javax.swing.JTextField txtOtraAbuso;
    private javax.swing.JTextField txtOtraInicio;
    private javax.swing.JTextField txtPisoMadre;
    private javax.swing.JTextField txtPisoPadre;
    private javax.swing.JTextField txtTelefonoMadre;
    private javax.swing.JTextField txtTelefonoPadre;
    private javax.swing.JTextField txtTrabajo;
    private javax.swing.JTextField txtTrabajoMadre;
    private javax.swing.JTextField txtTrabajoPadre;
    private javax.swing.JTextField txtZonaServ;
    // End of variables declaration//GEN-END:variables

    private static boolean isNumeric(String cadena) {
        try {
            Long.parseLong(cadena);
            return true;
        } catch (NumberFormatException nfe) {
            return false;
        }
    }

    private void cargarDatos() {
        if (rbtnViolencia.isSelected()) {
            txtNroCaso.setText(String.valueOf(violencia.getCaso().getNumeroCaso()));
            txtNombreNinio.setText(violencia.getCaso().getNino_adolescente().toString());
            dtpFechaIngreso.setDate(violencia.getCaso().getFecha());
            cboComposicionFamiliar.setSelectedItem(violencia.getComposicionFamiliar());
            if (violencia.isViolenciaConyugal()) {
                cboViolencia.setSelectedItem("SI");
            } else {
                cboViolencia.setSelectedItem("NO");
            }
            if (violencia.isFamiliaresDiscapacitados()) {
                cboFamDiscapacitado.setSelectedItem("SI");
            } else {
                cboFamDiscapacitado.setSelectedItem("NO");
            }
            if (violencia.getPadre() != null) {
                Adulto padre = violencia.getPadre();
                txtNombrePadre.setText(padre.getNombre());
                txtApellidoPadre.setText(padre.getApellido());
                txtEdadPadre.setValue(padre.getEdad());
                txtDniPadre.setText(String.valueOf(padre.getDni()));
                txtTelefonoPadre.setText(padre.getTelefono());
                cboCallePadre.setSelectedItem(padre.getDireccion().getCalle());
                txtNroCallePadre.setText(String.valueOf(padre.getDireccion().getNuemero()));
                txtDptoPadre.setText(padre.getDireccion().getDepartamento());
                txtPisoPadre.setText(String.valueOf(padre.getDireccion().getPiso()));
                cboEstadoCivilPadre.setSelectedItem(padre.getEstadoCivil());
                cboTrabajoPadre.setSelectedItem(padre.getSituacionLaboral());
                txtTrabajoPadre.setText(padre.getLugarDeTrabajo());
                txtObraSocialPadre.setText(padre.getObraSocial());
                txtBeneficiarioPadre.setText(padre.getBeneficiario());
            } else {
                txtNombrePadre.setText("");
                txtApellidoPadre.setText("");
                txtEdadPadre.setValue(0);
                txtDniPadre.setText("");
                txtTelefonoPadre.setText("");
                cboCallePadre.setSelectedItem(null);
                txtNroCallePadre.setText("");
                txtDptoPadre.setText("");
                txtPisoPadre.setText("");
                cboEstadoCivilPadre.setSelectedItem(null);
                cboTrabajoPadre.setSelectedItem(null);
                txtTrabajoPadre.setText("");
                txtObraSocialPadre.setText("");
                txtBeneficiarioPadre.setText("");
            }
            if (violencia.getMadre() != null) {
                Adulto madre = violencia.getMadre();
                txtNombreMadre.setText(madre.getNombre());
                txtApellidoMadre.setText(madre.getApellido());
                txtEdadMadre.setValue(madre.getEdad());
                txtDniMadre.setText(String.valueOf(madre.getDni()));
                txtTelefonoMadre.setText(madre.getTelefono());
                cboCalleMadre.setSelectedItem(madre.getDireccion().getCalle());
                txtNroCalleMadre.setText(String.valueOf(madre.getDireccion().getNuemero()));
                txtDptoMadre.setText(madre.getDireccion().getDepartamento());
                txtPisoMadre.setText(String.valueOf(madre.getDireccion().getPiso()));
                cboEstadoCivilMadre.setSelectedItem(madre.getEstadoCivil());
                cboTrabajoMadre.setSelectedItem(madre.getSituacionLaboral());
                txtTrabajoMadre.setText(madre.getLugarDeTrabajo());
                txtObraSocialMadre.setText(madre.getObraSocial());
                txtBeneficiarioMadre.setText(madre.getBeneficiario());
            } else {
                txtNombreMadre.setText("");
                txtApellidoMadre.setText("");
                txtEdadMadre.setValue(0);
                txtDniMadre.setText("");
                txtTelefonoMadre.setText("");
                cboCalleMadre.setSelectedItem(null);
                txtNroCalleMadre.setText("");
                txtDptoMadre.setText("");
                txtPisoMadre.setText("");
                cboEstadoCivilMadre.setSelectedItem(null);
                cboTrabajoMadre.setSelectedItem(null);
                txtTrabajoMadre.setText("");
                txtObraSocialMadre.setText("");
                txtBeneficiarioMadre.setText("");
            }
            DefaultTableModel modelo = (DefaultTableModel) tlbHijos.getModel();
            Iterator<Hijo> it = listaHijos.iterator();
            while (it.hasNext()) {
                Hijo hijo = it.next();
                Object[] obj = new Object[3];
                obj[0] = hijo;
                obj[1] = hijo.getEdad();
                obj[2] = hijo.getEscolaridad().toString();
                modelo.addRow(obj);
            }
            txtNombreHijo.setText("");
            txtApellidoHijo.setText("");
            cboEscolaridad.setSelectedIndex(-1);
            txtEdadHijo.setValue(0);

            txtComisaria.setText(violencia.getComisaria().getNombre());
            txtJuzgado.setText(violencia.getInformacionJuzgado().getJuzgadoDeFamilia().getNombre());
            if (violencia.getInformacionJuzgado().isHaIntervenido()) {
                cboIntervinoJuz.setSelectedItem("SI");
            } else {
                cboIntervinoJuz.setSelectedItem("NO");
            }
            cboAsesoria.setSelectedItem(violencia.getInformacionAsesoria().getTipoAsesoria());
            txtAsesoria.setText(violencia.getInformacionAsesoria().getAsesoria().getNombre());
            txtCopnaf.setText(violencia.getInformacionCopnaf().getCopnaf().getNombre());
            if (violencia.getInformacionCopnaf().isHaIntervenido()) {
                cboIntervinoCop.setSelectedItem("SI");
            } else {
                cboIntervinoCop.setSelectedItem("NO");
            }
            if (violencia.getInformacionServicioProteccionDerecho().isHaIntervenido()) {
                cboIntervinoServ.setSelectedItem("SI");
            } else {
                cboIntervinoServ.setSelectedItem("NO");
            }
            if (violencia.getInformacionServicioProteccionDerecho().isLoConoce()) {
                cboConoceServ.setSelectedItem("SI");
            } else {
                cboConoceServ.setSelectedItem("NO");
            }
            txtZonaServ.setText(violencia.getInformacionServicioProteccionDerecho().getZona());

            dtpFechaV.setDate(violencia.getFecha());
            txtIntRealizadaV.setText(violencia.getIntervencionRealizada());
            txtEquipo102V.setText(violencia.getEquipo102());
            txtEntrevistadoV.setText(violencia.getEntrevistado());
        } else {
            if (rbtnAdicciones.isSelected()) {
                txtNroCaso3.setText(String.valueOf(adiccion.getCaso().getNumeroCaso()));
                txtNombreNinio3.setText(adiccion.getCaso().getNino_adolescente().toString());
                dtpFechaIngreso3.setDate(adiccion.getCaso().getFecha());
                if (adiccion.getComposicionFamiliar() == TipoComposicionFamiliar.SEPARADO) {
                    rbtnSeparado1.setSelected(true);
                } else {
                    if (adiccion.getComposicionFamiliar() == TipoComposicionFamiliar.CASADO_CONCUBINATO) {
                        rbtnCasado1.setSelected(true);
                    } else {
                        if (adiccion.getComposicionFamiliar() == TipoComposicionFamiliar.FAMILIA_DE_ORIGEN) {
                            rbtnFamilia1.setSelected(true);
                        } else {
                            if (adiccion.getComposicionFamiliar() == TipoComposicionFamiliar.HIJOS) {
                                rbtnHijos1.setSelected(true);
                            }
                        }
                    }
                }
                if (adiccion.isPrimaria()) {
                    rbtnPrimario.setSelected(true);
                    cboPrimario.setSelectedItem(adiccion.getPrimariaCom());
                } else {
                    if (adiccion.isSecundaria()) {
                        rbtnSecundario.setSelected(true);
                        cboSecundario.setSelectedItem(adiccion.getSecundariaCom());
                    } else {
                        if (adiccion.isUniversidad()) {
                            rbtnUniversitario.setSelected(true);
                        }
                    }
                }
                cboTrabajo.setSelectedItem(adiccion.getSituacionLaboral());
                txtTrabajo.setText(adiccion.getLugarDeTrabajo());
                txtObraSocial.setText(adiccion.getObraSocial());
                txtEdadInicio.setValue(adiccion.getEdadInicio());
                cboSustAbuso.setSelectedItem(adiccion.getSustanciaAbuso());
                cboSustInicio.setSelectedItem(adiccion.getSustanciaInicio());
                txtOtraInicio.setText(adiccion.getOtraSustanciaInicio());
                txtOtraAbuso.setText(adiccion.getOtraSustanciaAbuso());
                if (adiccion.isConsumeAlcohol()) {
                    rbtnConsumeSi.setSelected(true);
                } else {
                    rbtnConsumeNo.setSelected(true);
                }
                if (adiccion.isTratamientoAnterior()) {
                    rbtnTratSi.setSelected(true);
                } else {
                    rbtnTratNo.setSelected(true);
                }
                txtCual.setText(adiccion.getCualTratamiento());
                txtDonde.setText(adiccion.getDondeTratamiento());
                dtpFechaA.setDate(adiccion.getFecha());
                txtIntervencionA.setText(adiccion.getIntervencionRealizada());
                txtEquipo102A.setText(adiccion.getEquipo102());
                txtEntrevistadoA.setText(adiccion.getEntrevistado());
            }
        }
    }
    
    @Override
    public int print(Graphics g, PageFormat f, int pageIndex) {
        SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd/MM/yyyy");
        Image check = null;
        int cantidad = 0;
        if (rbtnViolencia.isSelected()) {
            double aux = ((double)tlbHijos.getRowCount() / 6.0) - 1;
            int aux1 = (int) aux;
            double dec = aux - aux1;
            if (dec > 0) {
                cantidad = aux1+1;
            }
            if (cantidad < 0) {
                cantidad = 0;
            }
        }
        if (pageIndex >= 0 && pageIndex <= cantidad) {
            try {
                // Imprime "Hola mundo" en la primera pagina, en la posicion 100,100
                check = ImageIO.read(new File("src/imagenes/check.png").toURI().toURL());
            } catch (Exception ex) {
            }
            if (rbtnAdicciones.isSelected()) {
                try {
                    // Imprime "Hola mundo" en la primera pagina, en la posicion 100,100
                    Image img = ImageIO.read(new File("src/imagenes/ficha-intervencion-adicciones.png").toURI().toURL());
                    g.drawImage(img, 52, 0, 491, 801, null);
                } catch (Exception ex) {
                }
                //datos del caso
                g.setFont(new Font("Tahoma", Font.BOLD, 18));
                g.drawString(txtNroCaso3.getText(), 142, 139);
                g.setFont(new Font("Tahoma", Font.PLAIN, 11));
                if (rbtnSeparado1.isSelected()) {
                    g.drawImage(check, 169, 178, 20, 20, null);
                } else {
                    if (rbtnCasado1.isSelected()) {
                        g.drawImage(check, 314, 178, 20, 20, null);
                    } else {
                        if (rbtnFamilia1.isSelected()) {
                            g.drawImage(check, 437, 178, 20, 20, null);
                        } else {
                            if (rbtnHijos1.isSelected()) {
                                g.drawImage(check, 500, 177, 20, 20, null);
                            }
                        }
                    }
                }
                if (rbtnPrimario.isSelected()) {
                    if (cboPrimario.getSelectedItem() == TipoCompleto.COMPLETO) {
                        g.drawImage(check, 177, 235, 20, 20, null);
                    } else {
                        if (cboPrimario.getSelectedItem() == TipoCompleto.INCOMPLETO) {
                            g.drawImage(check, 290, 235, 20, 20, null);
                        }
                    }
                } else {
                    if (rbtnSecundario.isSelected()) {
                        if (cboSecundario.getSelectedItem() == TipoCompleto.COMPLETO) {
                            g.drawImage(check, 177, 255, 20, 20, null);
                        } else {
                            if (cboSecundario.getSelectedItem() == TipoCompleto.INCOMPLETO) {
                                g.drawImage(check, 290, 255, 20, 20, null);
                            }
                        }
                    } else {
                        if (rbtnUniversitario.isSelected()) {
                            g.drawImage(check, 177, 275, 20, 20, null);
                        } else {
                        }
                    }
                }
                if (cboTrabajo.getSelectedItem() == TipoSituacionLaboral.DESOCUPADO) {
                    g.drawImage(check, 97, 332, 20, 20, null);
                } else {
                    if (cboTrabajo.getSelectedItem() == TipoSituacionLaboral.TRABAJO_PRECARIO) {
                        g.drawImage(check, 189, 332, 20, 20, null);
                    } else {
                        if (cboTrabajo.getSelectedItem() == TipoSituacionLaboral.BENEFICIARIO) {
                            g.drawImage(check, 292, 332, 20, 20, null);
                        } else {
                            if (cboTrabajo.getSelectedItem() == TipoSituacionLaboral.OCUPADO) {
                                g.drawImage(check, 364, 332, 20, 20, null);
                                g.drawString(txtTrabajo.getText(), 393, 344);
                            }
                        }
                    }
                }
                g.drawString(txtObraSocial.getText(), 120, 365);

                g.drawString(txtEdadInicio.getValue().toString(), 131, 422);
                if (cboSustInicio.getSelectedItem() == TipoSustancia.OTRAS) {
                    g.drawString(txtOtraInicio.getText(), 153, 442);
                } else {
                    g.drawString(cboSustInicio.getSelectedItem().toString(), 153, 442);
                }
                if (cboSustAbuso.getSelectedItem() == TipoSustancia.OTRAS) {
                    g.drawString(txtOtraAbuso.getText().toString(), 155, 463);
                } else {
                    g.drawString(cboSustAbuso.getSelectedItem().toString(), 155, 463);
                }
                if (rbtnConsumeSi.isSelected()) {
                    g.drawImage(check, 168, 469, 20, 20, null);
                } else {
                    if (rbtnConsumeNo.isSelected()) {
                        g.drawImage(check, 218, 469, 20, 20, null);
                    }
                }
                if (rbtnTratSi.isSelected()) {
                    g.drawImage(check, 193, 491, 20, 20, null);
                } else {
                    if (rbtnTratNo.isSelected()) {
                        g.drawImage(check, 245, 491, 20, 20, null);
                    }
                }
                g.drawString(txtCual.getText(), 96, 521);
                g.drawString(txtDonde.getText(), 104, 541);
                g.drawString(sdf.format(dtpFechaA.getDate()), 116, 579);
                g.drawString(txtIntervencionA.getText(), 370, 579);
                g.drawString(txtEquipo102A.getText(), 147, 600);
                g.drawString(txtEntrevistadoA.getText(), 363, 600);


            } else {
                if (rbtnViolencia.isSelected()) {
                    try {
                        // Imprime "Hola mundo" en la primera pagina, en la posicion 100,100
                        Image img = ImageIO.read(new File("src/imagenes/ficha-intervencion.png").toURI().toURL());
                        g.drawImage(img, 52, 0, 491, 801, null);
                    } catch (Exception ex) {
                    }
                    g.setFont(new Font("Tahoma", Font.BOLD, 18));
                    g.drawString(txtNroCaso.getText(), 142, 139);
                    g.setFont(new Font("Tahoma", Font.PLAIN, 11));
                    if (cboComposicionFamiliar.getSelectedItem() == TipoComposicionFamiliar.SEPARADO) {
                        g.drawImage(check, 181, 176, 20, 20, null);
                    } else {
                        if (cboComposicionFamiliar.getSelectedItem() == TipoComposicionFamiliar.ENSAMBLADO) {
                            g.drawImage(check, 261, 176, 20, 20, null);
                        } else {
                            if (cboComposicionFamiliar.getSelectedItem() == TipoComposicionFamiliar.SUSTITUTO) {
                                g.drawImage(check, 323, 176, 20, 20, null);
                            } else {
                                if (cboComposicionFamiliar.getSelectedItem() == TipoComposicionFamiliar.NUCLEAR) {
                                    g.drawImage(check, 403, 176, 20, 20, null);
                                } else {
                                    if (cboComposicionFamiliar.getSelectedItem() == TipoComposicionFamiliar.PADRE_UNICO) {
                                        g.drawImage(check, 500, 176, 20, 20, null);
                                    }
                                }
                            }
                        }
                    }
                    if (cboViolencia.getSelectedItem().toString().equals("SI")) {
                        g.drawImage(check, 173, 197, 20, 20, null);
                    } else {
                        if (cboViolencia.getSelectedItem().toString().equals("NO")) {
                            g.drawImage(check, 225, 197, 20, 20, null);
                        }
                    }
                    if (cboFamDiscapacitado.getSelectedItem().toString().equals("SI")) {
                        g.drawImage(check, 448, 197, 20, 20, null);
                    } else {
                        if (cboFamDiscapacitado.getSelectedItem().toString().equals("NO")) {
                            g.drawImage(check, 500, 197, 20, 20, null);
                        }
                    }
                    g.drawString(txtNombrePadre.getText(), 95, 228);
                    g.drawString(txtEdadPadre.getValue().toString(), 381, 231);
                    if (cboCallePadre.getSelectedItem() != null) {
                        if ((txtDptoPadre.getText().equals("") || txtDptoPadre.getText().equals("0")) && (txtPisoPadre.getText().equals("") || txtPisoPadre.getText().equals("0"))) {
                            g.drawString(cboCallePadre.getSelectedItem().toString() + " " + txtNroCallePadre.getText(), 106, 247);
                        } else {
                            g.drawString(cboCallePadre.getSelectedItem().toString() + " " + txtNroCallePadre.getText() + " Piso: " + txtPisoPadre.getText() + " Dpto: " + txtDptoPadre.getText(), 106, 247);
                        }
                    }
                    g.drawString(txtTelefonoPadre.getText(), 382, 247);
                    g.drawString(txtDniPadre.getText(), 81, 269);
                    if (cboEstadoCivilPadre.getSelectedItem() != null) {
                        g.drawString(cboEstadoCivilPadre.getSelectedItem().toString(), 318, 269);
                    }
                    if (cboTrabajoPadre.getSelectedItem() != null) {
                        if (cboTrabajoPadre.getSelectedItem() == TipoSituacionLaboral.DESOCUPADO) {
                            g.drawImage(check, 152, 274, 20, 20, null);
                        } else {
                            if (cboTrabajoPadre.getSelectedItem() == TipoSituacionLaboral.TRABAJO_PRECARIO) {
                                g.drawImage(check, 250, 273, 20, 20, null);
                            } else {
                                if (cboTrabajoPadre.getSelectedItem() == TipoSituacionLaboral.OCUPADO) {
                                    g.drawImage(check, 323, 274, 20, 20, null);
                                }
                            }
                        }
                    }
                    g.drawString(txtTrabajoPadre.getText(), 350, 285);
                    g.drawString(txtObraSocialPadre.getText(), 120, 306);
                    g.drawString(txtBeneficiarioPadre.getText(), 122, 325);

                    g.drawString(txtNombreMadre.getText(), 97, 346);
                    g.drawString(txtEdadMadre.getValue().toString(), 381, 349);
                    if (cboCalleMadre.getSelectedItem() != null) {
                        if ((txtDptoMadre.getText().equals("") || txtDptoMadre.getText().equals("0")) && (txtPisoMadre.getText().equals("") || txtPisoMadre.getText().equals("0"))) {
                            g.drawString(cboCalleMadre.getSelectedItem().toString() + " " + txtNroCalleMadre.getText(), 106, 365);
                        } else {
                            g.drawString(cboCalleMadre.getSelectedItem().toString() + " " + txtNroCalleMadre.getText() + " Piso: " + txtPisoMadre.getText() + " Dpto: " + txtDptoMadre.getText(), 106, 365);
                        }
                    }
                    g.drawString(txtTelefonoMadre.getText(), 382, 365);
                    g.drawString(txtDniMadre.getText(), 81, 387);
                    if (cboEstadoCivilMadre.getSelectedItem() != null) {
                        g.drawString(cboEstadoCivilMadre.getSelectedItem().toString(), 318, 387);
                    }
                    if (cboTrabajoMadre.getSelectedItem() != null) {
                        if (cboTrabajoMadre.getSelectedItem() == TipoSituacionLaboral.DESOCUPADO) {
                            g.drawImage(check, 152, 392, 20, 20, null);
                        } else {
                            if (cboTrabajoMadre.getSelectedItem() == TipoSituacionLaboral.TRABAJO_PRECARIO) {
                                g.drawImage(check, 250, 391, 20, 20, null);
                            } else {
                                if (cboTrabajoMadre.getSelectedItem() == TipoSituacionLaboral.OCUPADO) {
                                    g.drawImage(check, 322, 392, 20, 20, null);
                                }
                            }
                        }
                    }
                    g.drawString(txtTrabajoMadre.getText(), 350, 404);
                    g.drawString(txtObraSocialMadre.getText(), 120, 425);
                    g.drawString(txtBeneficiarioMadre.getText(), 122, 444);

                    DefaultTableModel modelo = (DefaultTableModel) tlbHijos.getModel();
                    if (modelo.getRowCount() > 0) {
                        int j = 0;
                        for (int i = pageIndex * 6; i < modelo.getRowCount(); i++) {
                            if (j <= 5) {
                                Hijo hijo = (Hijo) modelo.getValueAt(i, 0);
                                g.drawString(hijo.toString(), 60, 492 + (j * 13));
                                g.drawString(String.valueOf(hijo.getEdad()), 279, 492 + (j * 13));
                                g.drawString(hijo.getEscolaridad().toString(), 377, 492 + (j * 13));
                                j++;
                            } else {
                                break;
                            }
                        }
                    }

                    g.drawString(txtComisaria.getText(), 108, 606);
                    g.drawString(txtJuzgado.getText(), 349, 606);
                    if (cboIntervinoJuz.getSelectedItem() != null) {
                        g.drawString(cboIntervinoJuz.getSelectedItem().toString(), 505, 606);
                    }
                    if (cboAsesoria.getSelectedItem() != null) {
                        g.drawString(cboAsesoria.getSelectedItem().toString() + ": " + txtAsesoria.getText(), 245, 625);
                    }
                    g.drawString(txtCopnaf.getText(), 97, 645);
                    if (cboIntervinoCop.getSelectedItem() != null) {
                        g.drawString(cboIntervinoCop.getSelectedItem().toString(), 350, 645);
                    }
                    if (cboConoceServ.getSelectedItem() != null) {
                        g.drawString(cboConoceServ.getSelectedItem().toString(), 236, 665);
                    }
                    if (cboIntervinoServ.getSelectedItem() != null) {
                        g.drawString(cboIntervinoServ.getSelectedItem().toString(), 346, 665);
                    }
                    g.drawString(txtZonaServ.getText(), 424, 665);

                    g.drawString(sdf.format(dtpFechaV.getDate()), 115, 693);
                    g.drawString(txtIntRealizadaV.getText(), 369, 693);
                    g.drawString(txtEquipo102V.getText(), 147, 713);
                    g.drawString(txtEntrevistadoV.getText(), 361, 713);
                }
            }

            return PAGE_EXISTS;
        } else {
            return NO_SUCH_PAGE;
        }
    }
}
